home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:4702 comp.unix.shell:4717
- Newsgroups: comp.unix.wizards,comp.unix.shell
- Path: sparky!uunet!destroyer!mudos!mju
- From: mju@mudos.ann-arbor.mi.us (Marc Unangst)
- Subject: Re: The Problem with UNIX
- Message-ID: <Bxry40.I04@mudos.ann-arbor.mi.us>
- Date: Sun, 15 Nov 1992 20:26:23 GMT
- References: <1992Nov11.194557.16258@yarc.uucp> <1992Nov13.091914.6799@thunder.mcrcim.mcgill.edu> <1992Nov14.153857.1666@global.hacktic.nl>
- Organization: The Programmer's Pit Stop, Ann Arbor MI
- Lines: 25
-
- In article <1992Nov14.153857.1666@global.hacktic.nl> peter@global.hacktic.nl (Peter Busser) writes:
- >I did just that with bash and it didn't complain. But yet, echo is often a
- >built-in command. It complained about 'cat a b >b' but didn't complain about
- >'cat a b|cat>b' so it's not perfect.
-
- You fail to see the point. It's useless for cat to complain, because
- once cat gets to run "b" has already been clobbered by the shell. Try
-
- $ echo foo >foo
- $ echo bar >bar
- $ cat foo
- foo
- $ cat bar
- bar
- $ cat foo bar >bar
- cat: input/output files 'bar' identical
- $ cat bar
- foo
- $
-
- --
- Marc Unangst, N8VRH | "There are two ways to solve this problem:
- mju@mudos.ann-arbor.mi.us | the hard way, and the easy way. Let's start
- | with the hard way."
- | - W. Scheider, from a Physics lecture
-