gnu-emacs-sources
[Top][All Lists]
Advanced

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

Re: Interactive shell commands


From: Sebastian Tennant
Subject: Re: Interactive shell commands
Date: Thu, 22 Jan 2009 09:10:01 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Quoth Chetan <address@hidden>:
> Sebastian Tennant <address@hidden> writes:
>
>> Ignore this entire thread!
>>
>> If you want your shell aliases and functions to be accessible via 'M-!'
>> (shell-command) then use this two-line solution:
>>
>>  http://article.gmane.org/gmane.emacs.help/61529
>>
>> Thanks to Michael Heerdegen for pointing this out.
>>
>> Sebastian
>
> This has the undesirable effect on shell scripts written by someone
> else and possibly your own.  There is obviously a reason why aliases
> are not loaded by default in non-interactive shells, but they can be
> enabled if one is prepared to deal with it.

Indeed, and Peter Dyballa made the same point on gmane.emacs.help:

 http://article.gmane.org/gmane.emacs.help/61533

I argue that as BASH_ENV is set in ~/.emacs, and not elsewhere, it can
only potentially cause problems with scripts/commands called/issued from
inside Emacs, i.e., cron/at jobs are unaffected.

But yes, if people are at all worried they should use my functions
(interactive-shell-command and asynchronous-interactive-shell-command)
rather than setting BASH_ENV.

Sebastian





reply via email to

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