[Bugs-team] Odd thing about bug #745
cwjordanoi at cox.net
cwjordanoi at cox.net
Tue Jul 26 22:29:34 UTC 2011
I took a quick look at bug #745, to see if it made any sense or if I could duplicate it, and I ran into something strange. If I run "cat /dev/stdin", anything I type is displayed twice, then printed out by cat, and "^d"'s are ignored. If I run just "cat" by itself, that doesn't happen. The weird thing is, after I run "cat /dev/stdin", the behavior of "cat" by itself changes, as shown below, and stays changed until I log out and back in again. This doesn't happen on Unbuntu or MacOS. I'm not sure if it actually has anything to do with bug #745, but it's strange. Am I missing something here?
OpenIndiana SunOS 5.11 oi_148 November 2010
cwjordan at insufferable:~$ cat -An
foo
1 foo$
cwjordan at insufferable:~$ cat -An /dev/stdin
foo
foo
1 foo$
^D
2 $
^C
cwjordan at insufferable:~$ cat -An
foo
foo
1 foo$
^D
2 $
^C
cwjordan at insufferable:~$
Chris Jordan
cwjordanoi at cox.net
More information about the Bugs-team
mailing list