[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: semicolon at beginning of line
From: |
Joseph Fredette |
Subject: |
Re: semicolon at beginning of line |
Date: |
Sun, 8 Apr 2012 20:48:55 -0400 |
Could also use a #, no?
On Sun, Apr 8, 2012 at 8:46 PM, Steven W. Orr <steveo@syslang.net> wrote:
> 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, 2012/04/08
- Re: semicolon at beginning of line,
Joseph Fredette <=
- 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