Re: Quotes inserted into command

2007-05-22 Thread Chet Ramey
Matt Kane wrote: > Hello, > > I've got a script that does the following: > JAVA=/usr/bin/java > JAVA_W_CLASSPATH="$JAVA -cp \"$classpath\" " > $JAVA_W_CLASSPATH com.choicestream.foo > echo $JAVA_W_CLASSPATH > > I've noticed that on different versions of bash, it behaves differently. > Bash 3.0 wi

Re: Quotes inserted into command

2007-05-22 Thread Andreas Schwab
"Matt Kane" <[EMAIL PROTECTED]> writes: > Hello, > > I've got a script that does the following: > JAVA=/usr/bin/java > JAVA_W_CLASSPATH="$JAVA -cp \"$classpath\" " > $JAVA_W_CLASSPATH com.choicestream.foo > echo $JAVA_W_CLASSPATH > > I've noticed that on different versions of bash, it behaves diff

Quotes inserted into command

2007-05-22 Thread Matt Kane
Hello, I've got a script that does the following: JAVA=/usr/bin/java JAVA_W_CLASSPATH="$JAVA -cp \"$classpath\" " $JAVA_W_CLASSPATH com.choicestream.foo echo $JAVA_W_CLASSPATH I've noticed that on different versions of bash, it behaves differently. Bash 3.0 will execute: /usr/bin/java -cp "/path/