Escaping spaces in arguments to shell script

Jerry Feldman gaf at blu.org
Thu Apr 27 08:32:28 EDT 2006


On Wednesday 26 April 2006 11:18 pm, Matej Cepl wrote:
> Moreover, read in bash(1) difference between doublequotes (") and single
> quotes (') -- contrary to other languages (Python) they are not the same
> in bash. Single quotes are much more literal, so '\ ' could mean really
> <backslash><space>. On the other hand, if you use ' ', you don't have to
> bother with escaping the space at all.
This is generally true for all the shells going back to Bourne. 
-- 
Jerry Feldman <gaf at blu.org>
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9



More information about the Discuss mailing list