>Anyone want to tell me why a semicolon at the beginning of a shell line
>causes an error?
>
>The following work fine under sh, bash, ksh and csh (redhat 7.0):
>
>  date;ls -l
>  date;ls -l;
>
>but ';date;ls -l' fails under all shells except csh with the error:
>
>  sh: syntax error near unexpected token `;d'
>  bash: syntax error near unexpected token `;d'
>  pdksh: syntax error: `;' unexpected
>
>I see no real reason for this, and a semicolon at the end of the line seems
>to be accepted okay. Just curious.
>John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914

Why are you trying to put a ; at the start of a command anyway?  It is wrong.
This is plain and simple, a user error.

MB
-- 
e-mail: [EMAIL PROTECTED]       It is God's job to forgive bin Laden.
                                It is our job to set up the meeting.
                                    U.S. Marine Corp.
Visit - URL: http://www.vidiot.com/  (Your link to Star Trek and UPN)



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to