Re: bash shell variables with spaces

2004-07-18 Thread Matthias Czapla
On Mon, Jul 19, 2004 at 10:33:02AM +1000, Zenaan Harkness wrote: > Which raises the question - what if the expansion contains double quote > chars? Perhaps using double-backslash (or quad??) would do the trick? You mean like this?: $ FOO='foo "more foo" bar' $ echo "$FOO" foo "more foo" bar This

Re: bash shell variables with spaces

2004-07-18 Thread Zenaan Harkness
On Mon, 2004-07-19 at 10:27, Zenaan Harkness wrote: > Does anyone know why the following works: > > #!/bin/sh -x > FONT=-jmk-neep\ alt-medium-r-semicondensed-*-*-100-*-*-c-*-iso8859-15 > xterm -sl $BUFFER -fn $FONT -geometry 87x96+447+26 Sorry, the last line above should be: xterm -sl $BUFFER -f