Re: One cant insert a single quote into a variable with built-in substitution.

2008-08-01 Thread Matthew Woehlke
Damien Nadé wrote: I've tried to insert a single quote into a variable content. With something like this : bash-3.2$ foo=bar bash-3.2$ echo ${foo/%/'} If you look at that, you understand that is the $PS2, so it means that bash is interpreting the single quote a special char. So,

Re: One cant insert a single quote into a variable with built-in substitution.

2008-08-01 Thread Chet Ramey
Damien Nadé wrote: I've tried to insert a single quote into a variable content. With something like this : bash-3.2$ foo=bar bash-3.2$ echo ${foo/%/'} If you look at that, you understand that is the $PS2, so it means that bash is interpreting the single quote a special char. Bash is

One cant insert a single quote into a variable with built-in substitution.

2008-07-31 Thread Damien Nadé
Hello I've tried to insert a single quote into a variable content. With something like this : bash-3.2$ foo=bar bash-3.2$ echo ${foo/%/'} If you look at that, you understand that is the $PS2, so it means that bash is interpreting the single quote a special char. So, naturally, I've