From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Small change] Issue with dired-do-async-shell-command and certain shells Date: Thu, 18 May 2023 21:40:32 +0300 Message-ID: <837ct5v5y7.fsf@gnu.org> References: <5571181684433204@mail.yandex.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31371"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lycomedes 1814 Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 18 20:46:16 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 1pzidj-0007zU-R2 for ged-emacs-devel@m.gmane-mx.org; Thu, 18 May 2023 20:46:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzicl-0002CN-Up; Thu, 18 May 2023 14:45:15 -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 1pziY3-0008K7-Pv for emacs-devel@gnu.org; Thu, 18 May 2023 14:40:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pziY3-0006YM-Fv; Thu, 18 May 2023 14:40:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=yS7oja4Ug/9WGtps67E2gUYYJNapREdLBvYuXF0aQHs=; b=g5iApONxwjfy ZNb0SKfIBQR2JdKglwFe2ygTfLIIOt/Mv81hj7vy8m/SHx0LtLc+1wfRvgQd2KjTNYK3n8AM0KZU+ s9ldQZICAyBeyYZxKv4jiNpp+jvTB7M3qKLf9/sUb6JXciDqIX38H2l/g9sk99kkmTgg/YeRMGPkI A5zmfz5RFgjyAGsiWybztl6Qc/hTmvuybc/to5hQ4UY0NdOyw/w0aexocvHRqVZXCL/F2njCX0Dmr OXuPRdE/xGKR9PVSvQKhEeVNjRUGbhi4daSBlgctJt9UyHHBzfHFZB4fx+ZTBo+3SW0w70KKNrsH7 EJMh/eC4Nln6Xav/jINfSA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pziY0-0000c1-00; Thu, 18 May 2023 14:40:21 -0400 In-Reply-To: <5571181684433204@mail.yandex.com> (message from Lycomedes 1814 on Thu, 18 May 2023 20:12:45 +0200) 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:306189 Archived-At: > From: Lycomedes 1814 > 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?