Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [SOLVED] Libtool/zsh quoting problem: a zsh... bug?
- X-seq: zsh-workers 22233
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: [SOLVED] Libtool/zsh quoting problem: a zsh... bug?
- Date: Sat, 11 Feb 2006 19:42:53 +0000
- In-reply-to: <20060211181440.GA30984@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060209233201.GA5875@fargo> <20060211093607.GD10579@DervishD> <200602111321.48602.arvidjaar@xxxxxxxxxx> <20060211181440.GA30984@xxxxxxxxxxxxx>
On Feb 11, 10:14am, Wayne Davison wrote:
}
} + if (spbreak && (*s == Dnull || *s == Snull))
} + spbreak = 0;
}
} This will turn off word-splitting if the string started with a single or
} a double quote. This is incomplete because the arg may be something
} more complicated (such as: 'one' 'two' 'three four'), but it seems
} better than what we have now.
I experimented with but rejected a similar patch back around the time
of the previous discussion because of what happens with ${1+word "$@"}.
It seemed better to me for the shell to behave consistently even if not
posixly-correctly, and I'm loathe to mask an obvious bug with a less-
obvious one.
However, I wouldn't object to Wayne's patch if others think it's a good
idea.
} One question I have is what to do about ${=1:"$@"}? In the patch above,
} I chose to let the double quotes override the '='. If that is not
} desired, change the new "if" to only trigger disallow an spbreak of 2:
I think the latter would be more consistent with other treatment of
${=...}, but again it's not a big deal.
--
Bart Schaefer
http://www.well.com/user/barts
Messages sorted by:
Reverse Date,
Date,
Thread,
Author