Ben D
Ben D

Reputation: 475

ZSH arguments after file name

I switched from bash to zsh and I was wondering if there was a way to put arguments after file name like in bash Example: cp dir1 dir2 -r

Thank you

Upvotes: 0

Views: 261

Answers (2)

joeslice
joeslice

Reputation: 3464

zsh has some expanded/different features in the area of globbing and tab completion (two of the primary reasons folks may switch to zsh). Both of these provide you interesting way to add command line parameters. Is that what you are asking about?

Note also that most commands are not impacted by the shell you choose: ls, awk, grep, vim, etc. Obviously things like alias and function that are shell commands are potentially different.

Upvotes: 0

This depends only on the command, not on the shell. The shell passes the arguments in the order they're given, and makes no special treatment for arguments beginning with a -.

Upvotes: 1

Related Questions