From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lycomedes 1814 Newsgroups: gmane.emacs.devel Subject: [Small change] Issue with dired-do-async-shell-command and certain shells Date: Thu, 18 May 2023 20:12:45 +0200 Message-ID: <5571181684433204@mail.yandex.com> Mime-Version: 1.0 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12552"; mail-complaints-to="usenet@ciao.gmane.io" To: "emacs-devel@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 18 20:34:12 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pziS1-0002zh-TK for ged-emacs-devel@m.gmane-mx.org; Thu, 18 May 2023 20:34:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pziRG-0006FO-1W; Thu, 18 May 2023 14:33:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzi7S-0002l5-1J for emacs-devel@gnu.org; Thu, 18 May 2023 14:12:55 -0400 Original-Received: from forward103a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:d103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pzi7Q-0008BQ-8l for emacs-devel@gnu.org; Thu, 18 May 2023 14:12:53 -0400 Original-Received: from mail-nwsmtp-mxback-production-main-749.vla.yp-c.yandex.net (mail-nwsmtp-mxback-production-main-749.vla.yp-c.yandex.net [IPv6:2a02:6b8:c29:f314:0:640:913a:0]) by forward103a.mail.yandex.net (Yandex) with ESMTP id 7F44B4231D for ; Thu, 18 May 2023 21:12:46 +0300 (MSK) Original-Received: from mail.yandex.com (2a02:6b8:c0d:190:0:640:1707:0 [2a02:6b8:c0d:190:0:640:1707:0]) by mail-nwsmtp-mxback-production-main-749.vla.yp-c.yandex.net (mxback/Yandex) with HTTP id SCiSbf8WAa60-P09uz6UR; Thu, 18 May 2023 21:12:45 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1684433565; bh=rShtOT3aLB+M4uB81PCSm79M+Ou4e3czMBJLULtkswE=; h=Message-Id:Date:Subject:To:From; b=utr3j4xaz2wgpmUNfz04MKYBL/EiL90Po8BWD8nsQhj4w7LYVkvev2KMAKDAzoWNV XToK9ZV+PYwazezyNoO60/p2gyjUyvajxm/8Atwlu75vJHqspkrgMLfgPA4sucoEBD Xy1Dxr2KTNUzSVOrPuyKCeg09CJLHAAEfdHuFvUc= Authentication-Results: mail-nwsmtp-mxback-production-main-749.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.com Original-Received: by ztjdexdusepk5gyp.vla.yp-c.yandex.net with HTTP; Thu, 18 May 2023 21:12:45 +0300 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Received-SPF: pass client-ip=2a02:6b8:c0e:500:1:45:d181:d103; envelope-from=lycomedes1814@yandex.com; helo=forward103a.mail.yandex.net X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTML_MIME_NO_HTML_TAG=0.377, MIME_HTML_ONLY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Thu, 18 May 2023 14:32:26 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:306188 Archived-At:
Steps to reproduce:
 
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.