zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: rcexpandparam bug
Date: Thu, 02 Oct 1997 18:04:12 +0200	[thread overview]
Message-ID: <199710021604.SAA01708@hydra.ifh.de> (raw)

I've localised the rcexpandparam bug; unfortunately it's in the 
paramsubst() code where I don't know what anything means.

In the long `if (isarr)' chunk, right at the start there is a test
for no array value being set, with plan9 (rcexpandparam) not in
operation.  If that is true, something mysterious happens anyway and
non-null (whatever `n' is) is passed back.  If plan9 is set, there's a
chunk later on which handles that:  lots and lots of mysterious things
happen, until at the end there is another `if plan9' test to see if it
hasn't been unset:  this two line chunk then returns null.  That's
causing the problem:  this gets passed back by stringsubst() to
prefork(), causing the latter to abort all further processing.  The
result is that in things like `=ls $*', the =ls doesn't get expanded
if $* was null and rcexpandparam was set.  I have no idea what to do
about it.

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.


                 reply	other threads:[~1997-10-02 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=199710021604.SAA01708@hydra.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).