home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4729 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.4 KB

  1. Xref: sparky comp.unix.wizards:4729 comp.unix.shell:4734 comp.unix.misc:4198
  2. Path: sparky!uunet!nntp1.radiomail.net!fernwood!autodesk!dansmith
  3. From: dansmith@Autodesk.COM (Daniel Smith)
  4. Newsgroups: comp.unix.wizards,comp.unix.shell,comp.unix.misc
  5. Subject: Re: The Problem with UNIX
  6. Message-ID: <17934@autodesk.COM>
  7. Date: 16 Nov 92 21:42:39 GMT
  8. References: <1992Nov9.172715.16367@cs.wisc.edu> <aldavi01.721333614@starbase.spd.louisville.edu> <1992Nov13.094336.2341@aber.ac.uk> <1992Nov13.213107.5722@chpc.utexas.edu>
  9. Followup-To: comp.unix.wizards
  10. Organization: Autodesk Inc., Sausalito CA, USA
  11. Lines: 48
  12.  
  13. In <1992Nov13.213107.5722@chpc.utexas.edu> michael@chpc.utexas.edu (Michael Lemke) writes:
  14.  
  15. > In article <1992Nov13.094336.2341@aber.ac.uk> btk@aber.ac.uk (Ben Ketteridge) writes:
  16. > >For example, just to take the 'cat a b > b' problem, you are suggesting IMHO 
  17. > >that
  18. > >the shell shouldn't check redirection of output against the input and warn the
  19. > >user in this case.
  20.  
  21. > Actually, I think this example should work!  It is a perfectly 
  22. > reasonable request.  
  23.  
  24.     No it isn't, consider my "glasses of water" theorem:
  25.  
  26.  
  27.          |         |          |           |
  28.          |~~~~~~~~~|          |~~~~~~~~~~~|
  29.          |         |          |           |
  30.          |         |          |           |
  31.          |    A    |          |    B      |
  32.          |         |          |           |
  33.           \_______/            \_________/
  34.  
  35.  
  36.     Ok, B can get bigger (i.e. a goblet, or a pitcher) to accept water
  37. from A, but what do you mean to do with B's original water?  I think
  38. B's original water must go to:
  39.  
  40.          |      |_
  41.          |~~~~~~| \
  42.          |   C  | ||
  43.          |      |_/
  44.           \____/
  45.  
  46.     C, an arbitrary coffee cup in n-dimensional cupboard space, which
  47. can expand to hold any amount of liquid found in A & B.  I think you're
  48. suggesting throwing B's water up in the air while A's water goes to B,
  49. and having B's water splash on top.  This violates most of the laws of kitchen
  50. physics (see Child, Julia "Fractal Baking") and just makes a big mess.
  51. The third container (Tupperware or otherwise) saves the day.  With
  52. this example, you could pour all of the water from C back into B (mv)
  53. and then put C in the dishwasher (rm).
  54.  
  55.                 Daniel
  56. -- 
  57.      Daniel Smith, Autodesk, Sausalito, California, (415) 332-2344 x 2580
  58.           Disclaimer: written by a highly caffeinated mammal
  59.         dansmith@autodesk.com            dansmith@well.sf.ca.us
  60.  
  61.