Hi David,

Thank you so much. This is very kind of you. The information you
provided couldn't be any better. It is indeed the basic shell script
knowledge that I am lacking.

Have a nice day,
Bernard

On Thu, 12 Jul 2001 09:05:16 -0400, you wrote:

>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


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to