home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.22 / text0081.txt < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.2 KB  |  31 lines

  1. Submitted-by: rcd@ico.isc.com (Dick Dunn)
  2.  
  3. jack@cwi.nl (Jack Jansen) writes:
  4.  
  5. > ... I don't see any problem in the shell reading the first line and
  6. > checking it for #!/bin/sh.
  7.  
  8. > The only thing that this would break is that old shell scripts without
  9. > a #! first line wouldn't execute anymore, but this is trivial to fix
  10. > by adding the #! line.
  11.  
  12. While I don't really intend to wish evil upon Jansen, I do wish that people
  13. who make statements like this would have to keep a hand in maintaining
  14. large systems.
  15.  
  16. It is, indeed, trivial to change any given shell script by the addition of
  17. a #! line at the beginning.  But the task of finding (all instances of) all
  18. shell scripts and correcting them all is a most incredible nightmare.  Even
  19. this ignores finding the programs which generate shell scripts (a much
  20. smaller class than the former, but much harder to solve).
  21.  
  22. The alternate solution which has been suggested--having the shell sanity-
  23. check before it executes a file--is far more practical to carry out in the
  24. real world, and will find virtually all non-shell-script problems.
  25. -- 
  26. Dick Dunn     rcd@ico.isc.com -or- ico!rcd       Boulder, CO   (303)449-2870
  27.    ...Mr. Natural says, "Use the right tool for the job."
  28.  
  29. Volume-Number: Volume 22, Number 83
  30.  
  31.