How can I make several commands to be executed after a && or a ||?

Alexander Skwar alexanders.mailinglists+nospam at gmail.com
Sat Feb 18 08:17:19 UTC 2012


Hi.

2012/2/17 Johnny Rosenberg <gurus.knugum at gmail.com>

>
> You know, something like this:
>
> ThisCommand && (
>        echo $Something
>        SomeVariable=3)
> DoSomethingElse
>
>
Exactly this works. With "( … )", you spawn a subshell.



Alexander
-- 
↯    Lifestream (Twitter, Blog, …) ↣ http://alexs77.soup.io/     ↯
↯ Chat (Jabber/Google Talk) ↣ a.skwar at gmail.com , AIM: alexws77  ↯
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120218/a737b369/attachment.html>


More information about the ubuntu-users mailing list