Hi Edgar
So you think it should be a missing newline?
I don't think that is the case, because the cp operations happens as they should. Further more I have tried adding the newline with a \n , and it doesn't help.
Regards David

#!/bin/sh
W="\/Users\/edgarm\/tmp\/$1\/."
echo $W
sed -n 's/^File[ ]*\([^ ][^ ]*\).*/\"\1\" '"$W"'/p' < $2 | xargs echo X:

And this is the output...

tmp$ ./cptest1 test list.txt
\/Users\/edgarm\/tmp\/test\/.
X: ..\test\file1.txt /Users/edgarm/tmp/test/. ..\test\file2.txt
/Users/edgarm/tmp/test/.

See the problem?

Regards, Edgar Matzinger.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to