From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: [Small change] Issue with dired-do-async-shell-command and certain shells Date: Fri, 19 May 2023 15:23:10 +0800 Message-ID: <875y8o4wf5.fsf@yahoo.com> References: <5571181684433204@mail.yandex.com> <837ct5v5y7.fsf@gnu.org> <524171684444342@mail.yandex.com> <528571684452080@mail.yandex.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1382"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , "emacs-devel@gnu.org" To: Lycomedes 1814 Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 19 09:24:00 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 1pzuT0-000AcF-PV for ged-emacs-devel@m.gmane-mx.org; Fri, 19 May 2023 09:23:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzuSU-0003QI-1M; Fri, 19 May 2023 03:23:26 -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 1pzuSS-0003PL-6B for emacs-devel@gnu.org; Fri, 19 May 2023 03:23:24 -0400 Original-Received: from sonic303-20.consmr.mail.ne1.yahoo.com ([66.163.188.146]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pzuSQ-0000pE-Gn for emacs-devel@gnu.org; Fri, 19 May 2023 03:23:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684481000; bh=RnauoE/ZqfvJBzBNdr4zIiwA+Xqe4DV6tUTSIRcit3U=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=Igd7dJb5fD3rZMtJ0kkUNoFzE/lkoGGUBdAZs3AavIPgxiLB7wgHohw9Fe3hmcp1kAQ7GPnJnKgnCW55I28kgCfzewcfOYikVwsJqOTx4dZbLBBu0PSIxQ8hcT8ka4FxUetbUVrdQJyXA2YTTq9n492Xvli4vvLKI06s1M9t1HcGr6Im7mEJGEcE3TATNDJTtjOf3rTFTGbofkdkw2zYM/vp26MuWRDnCpMkCGyIvbQ/P1yE1961kaqfttyfTavjeyOcyL1NfKW2Y58nj5DJzLZE5CD8tjYzq471IBXAdzqPge9ed2cD9UIIUi15U5zefqq6/DxuRLNZyseft3D5Yg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1684481000; bh=FauiDXseOEw4sHx7cXiDXus6dwh0QkfpLBdafYm9QsY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=AYkvWl1RkttV5SSg41SOdqiNlKlOBPtk/o0IsbaV/xE/zIFSaw1d54LT+IiWSjk2D/X/g8l5GKxaGagdrZVqmClTsxZEDL+3sJ2V4OCTDNdGqj1nSi+o0jvbVyAvRZncLZSSNU8U4zF0vccgq71W+sUWc8oCM6Sf42hjn0qLtalo4GD1H6pG36GIa0ZDDEe8sNL+l1nBJrzcrzqk7YhImA5uZUNTex+X2ineBcTjzf4YdazwGQHs1P70LTqzkRfiPyFIl27TBWGpZopBkzHGP+IizpnxNLj5ECO6fTnMPmcRatBIlV8qV37g3/deWBl8wQ2/gNNsoyraFyP+GmVgVA== X-YMail-OSG: iuFm4EAVM1nNzapOn3rBbMzt7jherxFoC3k5G_GUI1I25Rfx_f.xLMyTHXesM0I XFwU6XE7QKvWyg6L_1J99WEOqcd1Bba8ty6XNPYr3ipO7SIHyRKY01A24KLfwUKgGIRm9YuBsL_r pObeD5Ta3I9rEuq6Z2xdU8kCkoYAhUk.CyP6iASELiatpzG1YHMiIyVINs8fPK1tjMB7aw0NjmFE w75Dy.CJ.xhbunmBAKkD6q5e4Ubo_Lj9kCH6cb6.GwQlGp9Xkt4ZrGCOmVTFuxAv3EGBoe3Ixqc7 Jx7J02kD4K9lMm0bdnGOCKh4DSu5QMs5umyhQ1p97SV4B7IoZ32GkrZX5A2.OHZ0v3wtR8zNaQs9 OOvjIJ.LrkkYrUs4PvEXf30.w9yXyY3YJfxqoWnGbuD2QnJjc7yLC0xgPxLC7RHFCwGRtcL7TWM6 wvQAT0DUnxdHvH8.PsBIPUmRFAHKI_dk4F11V.5lLFmPwOskkvLmQ5a9zvoj42BbXjNbWO1kT1hg dVXAA4e8wsO5DrUKxCAXzQE4AfGBe4_OpLb5hFNLDpjmO8PFwLeacSRjAL54W5eY7mKDo27z4m50 3f8UZ1XvICgXkWwVce_S_YCkiNrbqUOCKCHyYg6ts2XfXzrDJHP.TNyPy6.thEHZ.Sl.PujOWy69 9zucn7pRwXwKTjMbbmB0Ho_RRglG6uMnPindrbZjFlpaH6fK91ZF9gbmEFJ9sJDlC97AObeV7sY7 KUtWtS8PfAPZgg45SPd_3EZqhD6IXdqi.EiGtjmGGvna9tJuIk0PoDtx16rSgUZNQQHl2NWdVm_v OkVHwZ5nhOEhVrR6HFPY5nYUZAAt.ZBDicK4xwStvu X-Sonic-MF: X-Sonic-ID: fecd723c-1425-40e3-8683-c7a41a8289cf Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ne1.yahoo.com with HTTP; Fri, 19 May 2023 07:23:20 +0000 Original-Received: by hermes--production-sg3-748897c457-24pr6 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2f83cb61dff72b2ffa7a587956094955; Fri, 19 May 2023 07:23:15 +0000 (UTC) In-Reply-To: <528571684452080@mail.yandex.com> (Lycomedes's message of "Fri, 19 May 2023 01:22:04 +0200") X-Mailer: WebService/1.1.21471 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.146; envelope-from=luangruo@yahoo.com; helo=sonic303-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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:306200 Archived-At: Lycomedes 1814 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" : > > 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" : > > 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? Is fish a Bourne shell?