Bernard wrote:
> I am getting script errors/warnings as folows with my modified
> Eiger-Stein 1.1 script (I know it's my fault):
>
> [: missing]
> Where exactly does this message come from and what causes it to print
> (generically)?
This comes from a program called test (or [ - yes, single left square
bracket) which is used thus:
if [ $FOO -eq 1 ] ; then
...or...
if [ -f /some/file/some/where ] ; then
...or...
[ -b /some/device ] && echo "it's a block device, ya!"
Look up test in your UNIX book for more. As for the errors... it's
looking for that terminating ']' character (must have been called as
'['). I'm not sure how a CRLF pair could cause that error; perhaps
thus? ...
if [ $FOO -eq 1 -a \
$BAR -eq 3 -a \
"$UHOH" = "yes" ] ; then
With invalid line terminators, the "\" character would then insert a
"CR" into the stream, so the command actually becomes:
[ $FOO -eq 1 -a <CR><EndOfCmd>
...perhaps? That assumes CR-LF in that order...
_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-user