emacs-devel
[Top][All Lists]
Advanced

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

Re: [Small change] Issue with dired-do-async-shell-command and certain s


From: Po Lu
Subject: Re: [Small change] Issue with dired-do-async-shell-command and certain shells
Date: Fri, 19 May 2023 15:23:10 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

Lycomedes 1814 <lycomedes1814@yandex.com> writes:

> Clarification: it works when "&wait" is changed to "& wait" and the two 
> instances of "&" are changed to "& ".
>  
> 18.05.2023, 23:28, "Lycomedes 1814" <lycomedes1814@yandex.com>:
>
>  Indeed, "& wait" works with fish.  For the function to work with multiple 
> files selected, "&" must be changed to "& ".
>   
>  18.05.2023, 20:40, "Eli Zaretskii" <eliz@gnu.org>:
>
>   From: Lycomedes 1814 <lycomedes1814@yandex.com>
>   Date: Thu, 18 May 2023 20:12:45 +0200
>   
>   1. Use fish as your system shell.
>   2. Use dired-do-async-shell-command on any file, and type e.g. mpv.
>    
>   Fish interprets "&wait" as part of the file name, so mpv returns: "[file] 
> Cannot open file '027.wav&wait':
>   No such file or directory."
>    
>   Solution:
>    
>   In the function dired-shell-stuff-it, replace "&wait" with "& ". Then fish 
> interprets the command
>   correctly.
>
>  But the "wait" part is there for a reason, so simply removing it is
>  hardly TRT.
>
>  What if we use " & wait" instead, i.e. add a space between & and
>  "wait"? does the command then work correctly with fish?

Is fish a Bourne shell?


reply via email to

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