bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

semicolon at beginning of line


From: Elliott Forney
Subject: semicolon at beginning of line
Date: Sat, 7 Apr 2012 14:00:34 -0600

I wish bash would happily execute lines that begin with a semicolon,
i.e., treat it as a no-op followed by a command.  The following
examples come to mind:

$ infloop& echo hello
[2] 11361
hello
$ infloop&; echo hello
bash: syntax error near unexpected token `;'

$ echo hello; echo world
hello
world
$ echo hello;; echo world
bash: syntax error near unexpected token `;;'

$ ; echo hello world
bash: syntax error near unexpected token `;'

Any thoughts?

Thanks,
  Elliott Forney



reply via email to

[Prev in Thread] Current Thread [Next in Thread]