From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>,
<zsh-workers@sunsite.auc.dk>
Subject: Re: PATCH: "typeset -m" plays havoc
Date: Thu, 14 Sep 2000 17:35:45 +0000 [thread overview]
Message-ID: <1000914173545.ZM15847@candle.brasslantern.com> (raw)
In-Reply-To: <005101c01e6c$8e67ea50$21c9ca95@mow.siemens.ru>
On Sep 14, 8:55pm, Andrej Borsenkow wrote:
} Subject: RE: PATCH: "typeset -m" plays havoc
}
} What happens in case of
}
} splat() { typeset -F -m \* }
Depending on what stands in for -F, it dumps core. I just noticed that
myself.
} bor@itsrm2% splat () {typeset cdpath}
} bor@itsrm2% splat
}
} If I can believe manual:
}
} For each remaining NAME that refers to a parameter that is set, the
} name and value of the parameter are printed
}
} In our case cdpath is definitely set; but what we get is creation of local
} cdpath.
Which is what must happen, otherwise you can never create local parameters
with the same names as global ones and the whole point of "local" is lost.
Try a similar function in ksh or bash.
} The suggested patch seems to take care of the both. It is on top of Bart's.
} Peter?
No, please don't apply/commit 12806.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2000-09-14 17:43 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-14 15:42 Bart Schaefer
2000-09-14 16:55 ` Andrej Borsenkow
2000-09-14 17:35 ` Bart Schaefer [this message]
2000-09-14 18:20 ` Bart Schaefer
2000-09-15 16:35 ` Bart Schaefer
2000-09-15 17:36 ` Andrej Borsenkow
2000-09-15 18:46 ` Bart Schaefer
2000-09-17 3:53 ` PATCH: "typeset +m ..." and "typeset +g -m ..." Bart Schaefer
2000-09-18 8:40 ` Parameter aliasing? RE: PATCH: "typeset -m" plays havoc Andrej Borsenkow
2000-09-18 15:45 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1000914173545.ZM15847@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).