Sven Mueller wrote:
> Alexander Gerasiov wrote:
> 
>>'[[' is bash'ism and should be replaced.
>>
>>You can check your scripts with dash which is small and
>>installed-on-every-Sarge POSIX shell.
> 
> 
> Interesting, I only started using the [[ "test" equivalent when I had
> read about this being available on any posix shell. Unfortunately, I
> can't find the relevant webpage anymore. Oh well, I suppose that any
> modern system can spare those additional forks (which sum up to approx.
> 10ms on any run of that init script).
forks? As I understand modern shells has internal test (and [) functionality

You can look in bash(1) for string "enable -n test"

So you shouldn't care about such forks.

Regards, Alexander.

PS Thanks for a quick fix. :)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to