GNU bug report logs -
#47432
28.0.50; Dired using ! or & on file should fail without command supplied
Previous Next
Reported by: Jean Louis <bugs <at> gnu.support>
Date: Sat, 27 Mar 2021 07:14:01 UTC
Severity: wishlist
Tags: fixed
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 47432 <at> debbugs.gnu.org (full text, mbox):
* Arthur Miller <arthur.miller <at> live.com> [2021-03-27 17:00]:
> How you seen the docs? For example C-h k ! RET:
>
> Signature
> (dired-do-shell-command COMMAND &optional ARG FILE-LIST)
>
> Documentation
> Run a shell command COMMAND on the marked files.
>
>
> > Why should there be attempt to execute non-executable files?
>
> Because you asked it to by calling ! or & on a file in Dired.
I have got a feeling you have not get really what is taking place:
1. Dired mode
2. Come on any file or directory, not executable
3. Press ! or &
4. Press ENTER
5. Get error, it can be different, depending of situation. Like
/usr/bin/bash: line 1: admin_Leo: command not found where "admin_Leo"
is directory
I cannot see in the documentation that ! or & in Dired is supposed to
run that specific marked file as COMMAND. I can understand that
command is asked and user should enter the command. But I do not see
that the marked file is supposed to be executed as COMMAND when
command is not manually entered by user.
Why is Emacs trying to execute a directory?
Why is Emacs trying to execute non-executable file?
- documentation of the function should maybe reflect that ! or & is
meant to execute the marked file or current file in Dired if no
COMMAND is supplied manually.
- Emacs should stop trying to execute directories or non executable
files.
This bug report was last modified 4 years and 53 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.