2

I have installed the fish shell, and I'm very happy with it ... but I cannot run the following command:

make && make install

This works nicely in bash... How do I run it in fish shell?

Hennes
  • 64,768
  • 7
  • 111
  • 168
Ferenc Deak
  • 449
  • 3
  • 6
  • 19
  • 1
    possible duplicate of [chain Fish commands via \`&&\` or \`||\`](http://superuser.com/questions/446930/chain-fish-commands-via-or) – BuZZ-dEE Jul 14 '15 at 11:34

1 Answers1

5

From the documentation:

The and builtin is used to execute a command if the current exit status (as set by the last previous command) is 0.

COMMAND1; and COMMAND2

So you'd call:

make; and make install
slhck
  • 223,558
  • 70
  • 607
  • 592