Gentoo Archives: gentoo-user

From: Philip Webb <purslow@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] bash scripting tip
Date: Fri, 12 Nov 2010 21:09:30
Message-Id: 20101112203619.GL4443@ca.inter.net
In Reply to: Re: [gentoo-user] bash scripting tip by Hilco Wijbenga
1 101112 Hilco Wijbenga wrote:
2 > On 12 November 2010 09:57, Philip Webb <purslow@××××××××.net> wrote:
3 >> I tried 'function cd2() { cd .. ; cd $1 ; }',
4 > Doesn't 'function cd2() { cd ../$1 ; }' work ? -- Yes
5
6 Yes, you're correct (slightly red face) !
7 I'm not sure why I didn't try that variation originally.
8
9 --
10 ========================,,============================================
11 SUPPORT ___________//___, Philip Webb
12 ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto
13 TRANSIT `-O----------O---' purslowatchassdotutorontodotca