[wplug] escaping double quotes in enivronment variables
Brandon Kuczenski
brandon at 301south.net
Sun Nov 28 15:00:36 EST 2004
On Sat, 27 Nov 2004, Bill Moran wrote:
> John Harrold <jmh17 at pitt.edu> wrote:
>
> > Sometime in November Bill Moran assaulted the keyboard and produced:
> >
> > | After exporting the variable, if you just type "export" (to list exported
> > | variables) ... what is the value of RSYNC_OPTS?
> >
> > This is what it gives:
> >
> > $ export |grep RSYNC
> > declare -x RSYNC_OPTS="-av -e \"ssh -2\""
>
> bash-2.05b$ export TEST='-e "option"'
> bash-2.05b$ export | grep TEST
> declare -x TEST="-e \"option\""
> bash-2.05b$ echo rsync $TEST
> rsync -e "option"
> bash-2.05b$ echo "rsync $TEST"
> rsync -e "option"
>
> Hmmm ... Well, I can't say I've got any more advice for you. I'm
> not sure what's going wrong. Hopefully someone else will have a
> better answer.
>
Could it be an sh versus bash issue?
-Brandon
More information about the wplug
mailing list