1 |
On Tue, 2006-05-30 at 07:10 +0200, Bo Ørsted Andresen wrote: |
2 |
> Tuesday 30 May 2006 06:48 skrev Iain Buchanan: |
3 |
> > I see this [ "x" != "x$BLAH" ] test all over the place, especially in |
4 |
> > the /etc/init.d scripts. Maybe -z is not standardised or something? |
5 |
> > Dunno why people use it. |
6 |
> |
7 |
> Having searched a little further I have been able to locate a few scripts that |
8 |
> uses this in my bin folders. Common for those scripts are that they are sh |
9 |
> scripts and not bash scripts. Looking at 'man sh' you find no -z or -n but |
10 |
> they are in 'man bash'. |
11 |
|
12 |
Ah, I was looking in /etc/init.d wondering why I couldn't find it :) I |
13 |
have bad RAM in my head. I guess sh scripts can be run by sh and bash, |
14 |
and probably other --sh variants. Not that that helps with this topic, |
15 |
I was just thinking aloud :) |
16 |
-- |
17 |
Iain Buchanan <iaindb at netspace dot net dot au> |
18 |
|
19 |
If you are a police dog, where's your badge? |
20 |
-- Question James Thurber used to drive his German Shepherd |
21 |
crazy. |
22 |
|
23 |
-- |
24 |
gentoo-user@g.o mailing list |