bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Error in description of "#!" line


From: Keith Thompson
Subject: [Bug-apl] Error in description of "#!" line
Date: Thu, 25 Feb 2016 08:57:39 -0800

The GNU APL manual says:

    APL is script-able; a text file whose first line looks like this
    (assuming the APL interpreter binary is called apl and can be
    found in the shell’s PATH):

        #!  apl

    or (if the APL interpreter binary is /mypath/apl but not
    necessarily in the shell’s PATH):

    #!  /mypath/apl

In fact the "#! apl" version will not work on most systems.
The "#!" mechanism doesn't pay attention to $PATH, so you have to
specify the full path to the interpreter.

A common workaround is:

    #!/usr/bin/env apl

I've discussed the pros and cons of that idiom here:

    http://unix.stackexchange.com/a/29620/10454

-- 
Keith Thompson <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]