(main): Don't die when dev/ino of input and output are
authorJim Meyering <jim@meyering.net>
Sat, 11 Nov 1995 14:21:15 +0000 (14:21 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 11 Nov 1995 14:21:15 +0000 (14:21 +0000)
commit24aec7f87ff14a3229d080007a77e1dc7ae79f2b
tree7ca93ac061803c9ed5349fbf8e0b5c8bdef34873
parentacb7c4ee4877c2261ef2abcb8bf00b73faa2f890
(main): Don't die when dev/ino of input and output are
the same and the file descriptors correspond to stdin and stdout.
This is necessary on at least Digital UNIX (aka OSF1) 3.2C.
Otherwise, running `cat << X > $$' would fail with `cat: -: input
file is output file'.  From Jarkko Hietaniemi <jhi@epsilon.hut.fi>.
src/cat.c