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

Re: zsh handling of non-standard if-evaluations



On Jan 29, 12:41am, Stephane Chazelas wrote:
}
} > > load-sh-profile() {
} > >   emulate -L sh
} > >   . /etc/profile
} > > }
} > 
} > No: any "typeset" commands would create parameters that are local to the
} > load-sh-profile function; that may have undesired consequences.
} 
} typeset is not sh, so there wouldn't be any in /etc/profile.

By that logic, [ "$VAR" == "VAL" ] is not sh either, so the original
problem should not exist.  If there is one bash-ism in /etc/profile,
then one might expect that there are others.



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