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

Re: Backticks In zshenv



On 20 Oct, Bart Schaefer wrote:

>  I've just seen the same problem, on a newly-installed RedHat 5.1 Linux
>  system with the zsh-3.0.5-2 RPM.  The /etc/zshenv file contains
>  
>  	if [[ `id -u` -eq 0 ]]
>  	then
>  	    ...
>  	fi

Some days ago this code (executed by zsh 3.1.4) failed, one time only,
with the error "zsh: parse error: condition expected: = ". 

	if [ `/usr/ucb/whoami` = root ]; then
		PATH_LAST=$PATH_LAST:/usr/etc
	fi

>  problems.  I'd assumed it was something about the "id" program.

and "whoami"  :-)

-- 
 Goran Larsson            hoh@xxxxxxxxxx
 I was an atheist,        http://home1.swipnet.se/%7Ew-12153/
 until I found out I was God.




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