home *** CD-ROM | disk | FTP | other *** search
- It is easy to make #! do a zapline. If you have a recent version of
- lisp, just execute:
-
- (defsharp ! (x) (zapline))
-
- (this could be put in your .lisprc, if you don't want to affect other
- people). The problem with adding this to Franz by default is that the
- sharpsign macro is shared by a number of lisps and few of them run under
- Unix. Therefore, few other lisps are going to want #! to be zapline.
-
-
- Regarding the -f switch: The -f switch is used to communicate between the
- bootstrap at the beginning of a fasl file and the lisp interpreter. It
- wasn't meant as a general 'fasl this file' switch for users to make use of.
- The choice of '-f' was bad, it should have been something more unique like
- '-- autorun' so that a user would be unlikely to type it. We have avoided
- assigning meanings to switches on lisp's command line because we want to give
- each user the opportunity to assign whatever meaning he wants to whatever
- switch he wants. It isn't difficult to write a program to scan the command
- line.
-
- Re:
- The (setq searchlist (cvtsearchpathtolist (getenv 'PATH))) would not be
- necessary, because the exec syscall supplies the full path name, because
- the shell has already done the path searching on the command name. The
- only place that might have to be searched is the current directory.
-
- This isn't true. (argv 0) is the command that you typed, not the full path
- name to the command. Only by prepending all the directories in the
- search list can you find the location of the command.
-
-
- ---john foderaro
-
-
-
-