Raymond Toy wrote:

>    Gisle> On the other hand, I find the behaviour nonintuitive, since 
> ./dir/myprog
>    Gisle> would run the program in a shell regardless of path, while the 
> equivalent
>    Gisle> (ext:run-program "./dir/myprog" '()) won't, unless you have "." in 
> the path.
>    Gisle> (Which you don't want in most cases)
>
>This is something that could be added if people really want this
>ability.  I've never had a need for it, myself, though.
>
>Ray
>
I think it would be least surprising if PATH were not searched when the 
path is provided by the user. 
That's how the shell works.  PATH is searched for  the command ls, but 
not for /bin/ls, ./ls, bin/ls, or ./bin/ls.

If run-program didn't search the PATH, the user could always use the 
shell for that:
    (ext:run-program "/bin/sh" (list "-c" "ls"))

Regards,

Craig Ludington


Reply via email to