Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: HP-UX 11.00 tgetenv dilemma
- X-seq: zsh-workers 14864
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: Re: HP-UX 11.00 tgetenv dilemma
- Date: Tue, 12 Jun 2001 17:04:41 +0100
- In-reply-to: ""Bart Schaefer""'s message of "Tue, 12 Jun 2001 14:25:31 -0000." <1010612142531.ZM24319@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
"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
set:
bash$ args() { typeset f; for f in "$@"; do echo $f; done; }
bash$ args `echo one two`
one
two
bash$ args foo`echo one two`
fooone
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
prohibited.
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