dthree / cash

Cross-platform Linux commands in ES6

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for ";", "&&", and "||"

nfischer opened this issue · comments

Bash supports the syntax cmd1;cmd2, which executes the first command and then executes the second command (it's the same as if these were two different commands). Also, Bash supports cmd1 && cmd2 (execute the first command, if it succeeds execute the second) and cmd1 || cmd2 (execute the first command, if it fails execute the second). These would be awesome features to support.

Not sure if this should be handled by vorpal or by cash, but I figured I would post it here since this is the use-case I had in mind.

commented

That's hilarious. I was actually planning to do these today (along with # comment). I think these would be super powerful and one of the most important steps toward full bash support.

Let me handle this one - I'm actually going to build a lot of the bash syntax straight into Vorpal, so all Vorpal apps can get the benefits.

Ok awesome! Sounds like a good move