cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: command line completely broken re. arguments

From: clemens fischer <ino-news_at_spotteswoode.dnsalias.org>
Date: Fri, 06 Oct 2006 11:49:55 +0200

On Fri, 6 Oct 2006 03:58:45 -0500 Ralph Mitchell wrote:

> As a workaround, try doing the same in a different shell, such as
> /bin/ksh. It looks like your bourne shell is not handling single
> quotes properly... To test it, try this:
>
> for n in '(a b c d)'
> do
> echo $n
> done
>
> The output I get is:
>
> (a b c d)
>
> ...
>
> I suspect the output you'll get in your FreeBSD bourne shell is:
>
> '(a
> b
> c
> d)'
>
> which is absolutely not curl's problem...

no, that's not it. i have many shell scripts both bash and bourne shell
and they all implement the "normal" quoting. so i get:

$ for i in '(a b c d)'
> do
> echo $i
> done
(a b c d)

regards, clemens
Received on 2006-10-06