[comp.unix.ultrix] wierd interaction in csh under Ultrix 3.0

envbvs@epb6.lbl.gov (Brian V. Smith) (05/07/89)

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@lbl.gov)
Lawrence Berkeley Laboratory

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

rob@genrad.com (Robert S. Wood) (05/09/89)

We reported this bug to DEC.  They told us to run newcsh instead of csh.
Since newcsh is in the unsupported software, I asked them if their telling
me to run it made it supported?.  They have not given a straight answer.

			rob@genrad.com