wierd interaction in csh under Ultrix 3.0

Brian V. Smith envbvs at epb6.lbl.gov
Sun May 7 06:57:18 AEST 1989


This is a really wierd interaction between echoing a quoted string
and the csh feature to execute a command and return the output as a value.

This works fine:

unix> echo "hello" | od -c
0000000    h   e   l   l   o  \n
________________________________________________________________________
So does this:

unix> echo hello `date` | od -c
0000000    h   e   l   l   o       S   a   t       M   a   y       6    
0000020    1   1   :   1   1   :   0   7       P   D   T       1   9   8
0000040    9  \n
________________________________________________________________________
But this has a serious problem:

unix> echo "hello" `date` | od -c
0000000  377   h 377   e 377   l 377   l 377   o       S   a   t       M
0000020    a   y       6       1   1   :   0   9   :   3   9       P   D
0000040    T       1   9   8   9  \n

Note the 377's (rubout with the eighth bit set)!

What is happening here?
_____________________________________
Brian V. Smith    (bvsmith at lbl.gov)
Lawrence Berkeley Laboratory

We don't need no signatures!
_____________________________________
Brian V. Smith    (bvsmith at lbl.gov)
Lawrence Berkeley Laboratory



More information about the Comp.unix.ultrix mailing list