1 |
111114 Willie Wong wrote: |
2 |
> On Mon, Nov 14, 2011 at 06:13:34AM -0500, Philip Webb wrote: |
3 |
>> alias th='date -d @$1' |
4 |
> That is not how you use alias. |
5 |
> What you want is to use a function. Replace the alias line by |
6 |
> function th { date -d @$1; } |
7 |
> in your bashrc you'l probably be ok. |
8 |
|
9 |
That's what I thought I tried, but evidently not: |
10 |
|
11 |
function th { date -d @$1 ; } |
12 |
|
13 |
does indeed work (with a space before ';'). |
14 |
|
15 |
Thanks for the various replies. |
16 |
|
17 |
-- |
18 |
========================,,============================================ |
19 |
SUPPORT ___________//___, Philip Webb |
20 |
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto |
21 |
TRANSIT `-O----------O---' purslowatchassdotutorontodotca |