Ahem A Rivet's Shot wrote:
>> Another solution, not decades old, is to use double brackets [[ which is
>> a keyword, not a built-in like [ or test,
>
> However that only works in bash so be sure to specify bash in the
> shebang rather than /bin/sh which may be something more like a real Bourne
> shell and not support extensions like [[.
Ah yes but the script did specify #!/usr/bash :) As this was a very
Pi-specific script, I think portability isn't an issue.
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|