Gentoo Archives: gentoo-user

From: Hilco Wijbenga <hilco.wijbenga@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] bash scripting tip
Date: Fri, 12 Nov 2010 18:36:31
Message-Id: AANLkTimdgLo18JEW28YY9pGPs=i9UMtUbanQHrAtkzF+@mail.gmail.com
In Reply to: [gentoo-user] bash scripting tip by Philip Webb
1 On 12 November 2010 09:57, Philip Webb <purslow@××××××××.net> wrote:
2 > It needs to be a Bash function, so in  ~/.bashrc
3 > I tried 'function cd2() { cd .. ; cd $1 ; }',
4
5 Doesn't
6
7 function cd2() { cd ../$1 }
8
9 work? (I haven't tried it.)

Replies

Subject Author
Re: [gentoo-user] bash scripting tip Hilco Wijbenga <hilco.wijbenga@×××××.com>