From: | Hilco Wijbenga <hilco.wijbenga@×××××.com> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] bash scripting tip | ||
Date: | Fri, 12 Nov 2010 19:17:45 | ||
Message-Id: | AANLkTik68NcQMW1aSCCAoVb2_qy7u++DHDBqskDzFC4p@mail.gmail.com | ||
In Reply to: | Re: [gentoo-user] bash scripting tip by Hilco Wijbenga |
1 | On 12 November 2010 10:36, Hilco Wijbenga <hilco.wijbenga@×××××.com> wrote: |
2 | > On 12 November 2010 09:57, Philip Webb <purslow@××××××××.net> wrote: |
3 | >> It needs to be a Bash function, so in ~/.bashrc |
4 | >> I tried 'function cd2() { cd .. ; cd $1 ; }', |
5 | > |
6 | > Doesn't |
7 | > |
8 | > function cd2() { cd ../$1 } |
9 | > |
10 | > work? (I haven't tried it.) |
11 | |
12 | So yes, this: |
13 | |
14 | function cd2() { cd ../$1; } |
15 | |
16 | works. |
Subject | Author |
---|---|
Re: [gentoo-user] bash scripting tip | BRM <bm_witness@×××××.com> |
Re: [gentoo-user] bash scripting tip | Philip Webb <purslow@××××××××.net> |