emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add shell-quasiquote.


From: Paul Eggert
Subject: Re: [PATCH] Add shell-quasiquote.
Date: Mon, 19 Oct 2015 18:41:05 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Taylan Ulrich Bayırlı/Kammer wrote:

Who ever talked about running files in the current directory?

It's normal to run files in the current directory. Any function that wants to run arbitrary shell commands needs to be able to do that. Concerns were raised about not being able to run arbitrary commands, so the topic is relevant.

the shell does not try to run the . file as a script, no matter what
PATH is.

No, the shell command ". ." tries to run the . file as a script, assuming that PATH starts with ".:".

> How is PATH even relevant to the topic?)

PATH can be relevant if a shell command name lacks slashes.

Admittedly it's weird to try to run "." as a shell script, but what can I say? This thread already went down that rabbit hole when the idea of running a command named "if" was raised. And "." is not a unique case here; for example, shqq won't run an executable named "break" either.



reply via email to

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