* wierd interaction in csh under Ultrix 3.0
@ 1989-05-06 20:57 Brian V. Smith
1989-05-09 0:47 ` Robert S. Wood
0 siblings, 1 reply; 2+ messages in thread
From: Brian V. Smith @ 1989-05-06 20:57 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1989-05-09 0:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1989-05-06 20:57 wierd interaction in csh under Ultrix 3.0 Brian V. Smith
1989-05-09 0:47 ` Robert S. Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox