[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
- semicolon at beginning of line,
Elliott Forney <=
- Re: semicolon at beginning of line, Linda Walsh, 2012/04/07
- Re: semicolon at beginning of line, Steven W. Orr, 2012/04/08
- Re: semicolon at beginning of line, Joseph Fredette, 2012/04/08
- Re: semicolon at beginning of line, Elliott Forney, 2012/04/10
- Re: semicolon at beginning of line, Elliott Forney, 2012/04/10
- Re: semicolon at beginning of line, Maarten Billemont, 2012/04/10
- Re: semicolon at beginning of line, Elliott Forney, 2012/04/10
- Re: semicolon at beginning of line, Clark Wang, 2012/04/11