Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh adding single quotes as it pleases



Hi,

I have a strange thing happening.

Given a text file like this:

cat ll.txt
-a p1vkg/Bis1234/"XXXXXXXX XXXXXXX XX"
-a r0esmm/Bis1234/"XXX XXX - XXXX"

Processing it like this:

#!/usr/bin/ksh

cat ll.txt | sed -e '/^\ *\#/d' | while read line
do

    set -x

    echo $line

done


Gives me

[113] + echo -a 'p1vkg/Bis1234/"XXXXXXXX' XXXXXXX 'XX"'
-a p1vkg/Bis1234/"XXXXXXXX XXXXXXX XX"
[113] + read line
[113] + set -x
[113] + echo -a 'r0esmm/Bis1234/"XXX' XXX - 'XXXX"'
-a r0esmm/Bis1234/"XXX XXX - XXXX"
[113] + read line

zsh is adding single quotes..

NOTE: running in compatibility mode:

ls -l /usr/bin/ksh
lrwxrwxrwx 1 root root 8 Dec  3  2008 /usr/bin/ksh -> /bin/zsh


Why does it do that ?

How can I stop it doing this ?

TIA,

Jerry



Messages sorted by: Reverse Date, Date, Thread, Author