On 11/15/2010 01:50 PM, Eric Blake wrote:
On 11/15/2010 11:24 AM, Stefan Berger wrote:
I tried this now and converted all \\ to \. I still get the same problem
here with dash using 'read -r line' now. The same problem exists with
echo "\1"
or
echo '\1'
Ah - the plot thickens, and the light bulb goes on for me. It's not
just a problem with read, but also with your use of 'echo' to try and
replay a just-read string. 'echo' and '\' don't mix. You have to use
printf for any chance of portability.
printf %s\\n "\1"
printf %s\\n '\1'
I am surprised that dash doesn't take the opportunity to already extend
"\1" or '\1' to char(1) in these cases. A mystery... :-)
I'll fix it. Thanks.
Stefan
--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list