Subject: Re: a proposal for two new libc functions: shquote() and shquotev()
To: None <>
From: Christos Zoulas <>
List: tech-userlevel
Date: 03/03/2001 02:57:01
In article <>,
Chris G. Demetriou <> 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...

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