[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: semicolon at beginning of line
From: |
Steven W. Orr |
Subject: |
Re: semicolon at beginning of line |
Date: |
Sun, 08 Apr 2012 20:46:42 -0400 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
On 4/7/2012 4:00 PM, Elliott Forney wrote:
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
Just use a colon.
: echo Hello world.
I use it all the time to 'park' a command in my history. Then when I'm ready, I
just back up to it and remove the colon.
--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net
- semicolon at beginning of line, Elliott Forney, 2012/04/07
- Re: semicolon at beginning of line, Linda Walsh, 2012/04/07
- Re: semicolon at beginning of line,
Steven W. Orr <=
- 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