From: envbvs@epb6.lbl.gov (Brian V. Smith)
Subject: wierd interaction in csh under Ultrix 3.0
Date: 6 May 89 20:57:18 GMT [thread overview]
Message-ID: <2557@helios.ee.lbl.gov> (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
next reply other threads:[~1989-05-06 20:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1989-05-06 20:57 Brian V. Smith [this message]
1989-05-09 0:47 ` wierd interaction in csh under Ultrix 3.0 Robert S. Wood
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox