How would a command like this have to be expressed in fish?

ls -l $(which vim)

In fish, $ is used only for variable expansion. Omit the $ from the command and you should be good. Say:

ls -l (which vim)

You might also want to refer to the documentation: Command Substitutions

  • and this one: $(npm bin)/cowsay hello ? – Yukulélé Jan 11 '20 at 22:12
  • @Yukulélé npm=(npm bin) $npm/cowsay hello – Sapphire_Brick Nov 17 '20 at 23:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.