Skip to main content

All Questions

Tagged with
0 votes
2 answers
129 views

mv multiple files on Linux vs. on Mac

To move multiple files on Linux, one could use: mv -t DESTINATION file1 file2 Whereas on macOS it is mv file1 file2 DESTINATION Why is this difference? Is this a Bash vs. Zsh thing, or older vs. ...
jsx97's user avatar
  • 1,347
4 votes
2 answers
220 views

How to make the (N) patterns of the zsh eatable by bash?

I am trying to develop a script which runs (and, ideally, does the same :-) ) in zsh and Bash. Problem is, that at a point, the zsh-specific part contains a pattern ending with (N). So: this_pattern*(...
peterh's user avatar
  • 10.3k
0 votes
1 answer
81 views

Comments are causing errors after changing the value of "histchars" in zsh

Why, after using set histchars='?', is there an error that occurs every time I source ~/.zshrc? /home/user/.zshrc:1: bad pattern: # In other words, every # token within comments is causing some ...
user avatar
3 votes
1 answer
3k views

How do I syntax check a Zsh script?

I can do it in bash using bash -n script.sh command. is this possible in zsh?
Akhil's user avatar
  • 1,350
8 votes
1 answer
10k views

The repeat command syntax in zsh

I'm beginning with zsh and I use this manual. The syntax for repeat is presented as: repeat word do list done However I've noticed that: repeat 5 echo ok also works fine. Still, this omission is ...
user avatar