Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] bash date puzzle
Date: Mon, 14 Nov 2011 13:11:03
Message-Id: 20111114130946.GC3002@ca.inter.net
In Reply to: Re: [gentoo-user] bash date puzzle by Willie Wong
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