[SGVLUG] Shell quoting

Matt Campbell dvdmatt at gmail.com
Mon Apr 19 09:29:19 PDT 2010


Wow.  And I thought I knew my shell cold.


Does anyone know the logic why this does not work?

 

    matt at scar:166% bash -c 'echo \'ALTER TABLE\' '

    Unmatched '.

 

And how this is actually parsed?

 

    matt at scar:144% bash -c echo 'ALTER TABLE `Components`'

    (returns a blank line)

 

 

Matt

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.sgvlug.net/pipermail/sgvlug/attachments/20100419/517dc726/attachment.html 


More information about the SGVLUG mailing list