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: Lycomedes 1814
Subject: Re: [Small change] Issue with dired-do-async-shell-command and certain shells
Date: Fri, 19 May 2023 17:01:33 +0200

Fish isn't Bourne-compatible.
 
19.05.2023, 09:23, "Po Lu" <luangruo@yahoo.com>:

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]