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

Re: HP-UX 11.00 tgetenv dilemma

"Bart Schaefer" wrote:
> On Jun 12, 11:25am, Peter Stephenson wrote:
> } Subject: Re: HP-UX 11.00 tgetenv dilemma
> }
> } Here's an attempt.  The KSH_TYPESET option prevents wordsplitting if it
> } finds an `=' in the pre-expansion text for typeset etc.
> The remaining problem is that KSH_TYPESET should be set by `emulate bash',
> which it is not because `emulate bash' is equivalent to `emulate sh'.

...and we don't want to set it for that because it's apparently correct for
the POSIX shell.  Should we introduce a separate emulation for bash?  It's
getting horribly complicated and we've never been that concerned about bash
compatilibity for non-POSIX features.

By the way, bash also seems to have the equivalent of MAGIC_EQUAL_SUBST

  bash$ args() { typeset f; for f in "$@"; do echo $f; done; }
  bash$ args `echo one two`
  bash$ args foo`echo one two`
  bash$ args foo=`echo one two`
  foo=one two

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Unit 300, Science Park, Milton Road,
Cambridge, CB4 0XL, UK                          Tel: +44 (0)1223 392070

The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
If you received this in error, please contact the sender and 
delete the material from any computer.

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