Subject: Re: a proposal for two new libc functions: shquote() and shquotev()
To: None <tech-userlevel@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 03/03/2001 17:15:17
In article <20010302231333.F20616@mail.netbsd.org>,
Charles M. Hannum <root@ihack.net> wrote:
>
>On Fri, Mar 02, 2001 at 10:58:48PM -0800, Chris G. Demetriou wrote:
>> christos@zoulas.com (Christos Zoulas) writes:
>> > How about an allocating version like asprintf()? That would cut down your
>> > example significantly.
>> 
>> I can imagine some trivial cases where that'd help, when _all_ of your
>> arguments are coming from the argc/argv given to shquotev().

Yes, so? I would give all my arguments to shquotev... Remember 'command' gets
eval'ed too. I would think that most of the time would I want to quote all the
arguments.

christos