Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh handling of non-standard if-evaluations



On Jan 27,  4:59am, Daniel Qarras wrote:
}
} if-evaluations that seems to work under bash (default shell on those
} systems) but not under zsh. Do you see worth to mimic bash here? The
} offending case is:
} 
} if [ "$VAR" == "VAL" ]

My guess is:

schaefer[501] [ "$VAR" == "VAL" ]; echo $?
zsh: = not found
schaefer[502] setopt no_equals
schaefer[503] [ "$VAR" == "VAL" ]; echo $?
1

If you're going to run bash scripts through zsh, you need to run them
with "emulate sh" in effect.



Messages sorted by: Reverse Date, Date, Thread, Author