emacs-devel
[Top][All Lists]
Advanced

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

Re: Shell commands in deleted directories


From: Ted Zlatanov
Subject: Re: Shell commands in deleted directories
Date: Sun, 13 Feb 2011 15:34:51 -0600
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

On Sun, 13 Feb 2011 22:21:38 +0100 Antoine Levitt <address@hidden> wrote: 

AL> 13/02/11 22:07, Paul Eggert
>> On 02/13/2011 01:02 PM, Antoine Levitt wrote:
>>> +   /* If current_dir is unreachable (typically, does not exist), use
>>> +      ~/ as default */
>> 
>> This looks like a bad idea.  Suppose I run the shell
>> command "rm *" in a deleted directory?
>> The change would cause me to remove files in
>> my home directory.  Better safe than sorry.

AL> Mmh, true. But then again, if you're using "rm *" as a shell command
AL> without being absolutely sure where you are, you're just asking for
AL> trouble.

I am strongly against this kind of surprise and hope it doesn't go into
Emacs.

Ted




reply via email to

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