home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:4824 comp.unix.shell:4827 comp.unix.misc:4278
- Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!ski8032
- From: ski8032@tamsun.tamu.edu (The Man Behind The Curtain)
- Subject: Re: The Problem with UNIX
- Message-ID: <1992Nov20.190558.22399@tamsun.tamu.edu>
- Organization: Texas A&M University, College Station
- References: <id.SY1V.ITA@ferranti.com> <1992Nov19.000136.3970@tamsun.tamu.edu> <id.034V._E5@ferranti.com>
- Date: Fri, 20 Nov 1992 19:05:58 GMT
- Lines: 45
-
- Thus spake peter@ferranti.com (peter da silva):
- >In article <1992Nov19.000136.3970@tamsun.tamu.edu> ski8032@tamsun.tamu.edu (The Man Behind The Curtain) writes:
- >> echo a > a
- >> echo b > b
- >> cat a b > b
- >> cat: input b is output
- >> cat a
- >> a
- >> cat b
- >> a
- >
- >echo a > a
- >echo b > b
- >cat a b > b
- >b: File exists.
- >cat a
- >a
- >cat b
- >b
- >
- >So, what's your problem?
-
- Four of the four Un*x systems I just tested react just the way I
- described. You must be using a more sophisticated shell than
- that which I am using (tcsh), but I think that it probably only catches
- simple problems; once an expression gets even slightly complex,
- I would guess that it does not catch all of these kind of things.
-
- Is it consistent? What does tail -10 .fingerees > .fingerees do?
- What does echo `cat a b` > b do? If I do a ln /usr/bin/cat zog; ./zog
- a b > b, does it report the same message? If I write a shell
- script foo like this:
-
- #!/bin/sh
- cat a b
-
- does foo > b work correctly?
-
- >Peter da Silva / 77487-5012 USA / +1 713 274 5180
-
- --
- Till next time, \o/ \o/
- V \o/ V email:pinky@tamu.edu
- <> Sam Inala <> V
-
-