home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0051.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  1.5 KB  |  37 lines

  1.    It is easy to make #! do a zapline.   If you have a recent version of
  2. lisp, just execute:
  3.  
  4. (defsharp ! (x) (zapline))
  5.  
  6. (this could be put in your .lisprc, if you don't want to affect other 
  7. people).    The problem with adding this to Franz by default is that the
  8. sharpsign macro is shared by a number of lisps and few of them run under
  9. Unix.   Therefore, few other lisps are going to want #! to be zapline.
  10.  
  11.  
  12.   Regarding the -f switch:  The -f switch is used to communicate between the
  13. bootstrap at the beginning of a fasl file and the lisp interpreter.  It
  14. wasn't meant as a general 'fasl this file' switch for users to make use of.
  15. The choice of '-f' was bad, it should have been something more unique like
  16. '-- autorun' so that a user would be unlikely to type it.   We have avoided
  17. assigning meanings to switches on lisp's command line because we want to give
  18. each user the opportunity to assign whatever meaning he wants to whatever
  19. switch he wants.   It isn't difficult to write a program to scan the command
  20. line.
  21.  
  22. Re:
  23.     The (setq searchlist (cvtsearchpathtolist (getenv 'PATH))) would not be
  24.     necessary, because the exec syscall supplies the full path name, because
  25.     the shell has already done the path searching on the command name.  The
  26.     only place that might have to be searched is the current directory.
  27.  
  28. This isn't true.  (argv 0) is the command that you typed, not the full path
  29. name to the command.  Only by prepending all the directories in the
  30. search list can you find the location of the command.
  31.  
  32.  
  33.                 ---john foderaro
  34.                 
  35.  
  36.  
  37.