From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news2.kpn.net!news.kpn.net!nslave.kpnqwest.net!nloc2.kpnqwest.net!nloc.kpnqwest.net!nmaster.kpnqwest.net!nreader2.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: Lisp as replacement for python References: <4adwukgxq.fsf@beta.franz.com> <0P9Q7.32220$nm3.1541763@news1.rdc1.bc.home.com> Mail-Copies-To: never From: Erik Naggum Message-ID: <3216770441744098@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 08 Dec 2001 03:20:43 GMT X-Complaints-To: newsmaster@KPNQwest.no X-Trace: nreader2.kpnqwest.net 1007781643 193.71.66.49 (Sat, 08 Dec 2001 04:20:43 MET) NNTP-Posting-Date: Sat, 08 Dec 2001 04:20:43 MET Xref: archiver1.google.com comp.lang.lisp:22095 * Kaz Kylheku | If it's not an executable, it s shunted to the same command interpreter | that the system() function invokes. That interpreter can optionally | process #!, as provided by this text in the shell command language | description:``[I]f the first line of a file of shell commands starts with | the characters #!, the results are unspecified.'' This is incorrect for many systems, probably all reasonably modern systems. #! is processed by the kernel as just another magic number for executabies, not by the shell, anymore. Processing #! in the shell was an old hack until it could get into the kernel, the smart way for new functionality to be added. Another way to find one's "home directory" is to require an environment variable to hold the home directory of the system. A better way than all this would be a system call to request the full path name of one's executable. That, of course, does not exist. Sometimes, Unix really sucks. /// -- The past is not more important than the future, despite what your culture has taught you. Your future observations, conclusions, and beliefs are more important to you than those in your past ever will be. The world is changing so fast the balance between the past and the future has shifted.