ohmyzsh: Unable to run sh files

# ./oh-my-zsh.sh                                              [~/.oh-my-zsh]
zsh: can't open input file: /tools/check_for_upgrade.sh

Did not work in bash either.

Other .sh files return similar results. Any ideas?

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

bug

.oh-my-zsh/oh-my-zsh.sh:14: command not found: env

@Bendihossan Had the same problem on Fedora 17. You first have to install zsh to make it work.

$ sudo yum install zsh

The chsh failing though because it’s asking for a Password but it doesn’t wait and prints “Authentication failure” I guess I’ll have to do the chsh manually!

I also have this problem on Mac OS X 10.6.8

mercer@Pericles: 9f 12K -> source ~/.zshrc
-bash: /Users/mercer/.oh-my-zsh/oh-my-zsh.sh: line 14: syntax error near unexpected token `('
-bash: /Users/mercer/.oh-my-zsh/oh-my-zsh.sh: line 14: `for config_file ($ZSH/lib/*.zsh) source $config_file'