Quotes within quotes within quotes in bash. :)

Nicholas Leippe nick at leippe.com
Fri Jun 23 15:52:14 MDT 2006

On Friday 23 June 2006 15:42, Kimball Larsen wrote:
> Then you get quotes within quotes within 
> quotes - which bash disallows.

How is it disallowed?  As long as the data is properly escaped/encoded, you 
should be able to pass anything.

echo "\"a\""
sh -c  "echo \"\\\"a\\\"\""
sh -c "sh -c  \"echo \\\"\\\\\\\"a\\\\\\\"\\\"\""

messy, but it works

More information about the PLUG mailing list