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 02:57:01
In article <87ofvjvc6k.fsf@mail.netbsd.org>,
Chris G. Demetriou <cgd@netbsd.org> wrote:
>The following is a proposal for two new libc functions.  (Thanks to
>Bill Sommerfeld for substantial comments which seriously improved
>their definition.)
>
>I keep running into the need for things like this, to make programs
>which use environment variables that can specify programs to run be
>more tolerant of those variables being multi-word.  Others appear to
>run into similar issues time and again, so...
>
>
>Thoughts?

How about an allocating version like asprintf()? That would cut down your
example significantly.

christos