Re: [Hampshire] bash error

Top Page

Reply to this message
Author: Chris Dennis via Hampshire
Date:  
To: hampshire
CC: Chris Dennis
Subject: Re: [Hampshire] bash error
On 26/02/2021 09:30, Brad Macpherson via Hampshire wrote:
> G'day Owain,
>
> I'm slightly surprised that works at all without a semicolon :-)


Don't forget that an ampersand IS a semi-colon, with the added feature
that the command that it terminates gets run in the background.

Which is very useful when running several commands in parallel:

    for x in 1 2 3; do echo $x & done

Cheers,

Chris


--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------