From: | Neil Bothwick <neil@××××××××××.uk> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] strange [ file | ||
Date: | Tue, 25 Jul 2006 15:12:58 | ||
Message-Id: | 20060725160653.1e402cd7@hactar.digimed.co.uk | ||
In Reply to: | Re: [gentoo-user] strange [ file by Alan McKinnon |
1 | On Tue, 25 Jul 2006 16:33:19 +0200, Alan McKinnon wrote: |
2 | |
3 | > Um, no. Read my post again. The command 'test' and the command '[' have |
4 | > *different* syntax so cannot possible be links to each other and still |
5 | > have it work. |
6 | |
7 | if [ $(basename $0) == "[" ] |
8 | then |
9 | #parse for trailing ] |
10 | else |
11 | #parse to end of line |
12 | fi |
13 | |
14 | |
15 | -- |
16 | Neil Bothwick |
17 | |
18 | Help! I've fallen and I can't get down! - James Brown |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |