From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Shuguang Sun Newsgroups: gmane.emacs.bugs Subject: bug#29442: dired-do-shell-command puts "start /b" in tramp dired Date: Sun, 26 Nov 2017 14:03:58 +0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a114050c636bf1c055edc8da4" X-Trace: blaine.gmane.org 1511676312 15259 195.159.176.226 (26 Nov 2017 06:05:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Nov 2017 06:05:12 +0000 (UTC) Cc: 29442@debbugs.gnu.org To: shuguang@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 26 07:05:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIq3s-0003Sl-Uc for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 07:05:05 +0100 Original-Received: from localhost ([::1]:55375 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIq40-00031O-69 for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Nov 2017 01:05:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eIq3t-0002zq-CL for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 01:05:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eIq3q-00088c-6S for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 01:05:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49791) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eIq3q-00088W-1x for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 01:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eIq3p-0000x8-Ox for bug-gnu-emacs@gnu.org; Sun, 26 Nov 2017 01:05:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Shuguang Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Nov 2017 06:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29442 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 29442-submit@debbugs.gnu.org id=B29442.15116762453596 (code B ref 29442); Sun, 26 Nov 2017 06:05:01 +0000 Original-Received: (at 29442) by debbugs.gnu.org; 26 Nov 2017 06:04:05 +0000 Original-Received: from localhost ([127.0.0.1]:58472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIq2v-0000vv-CQ for submit@debbugs.gnu.org; Sun, 26 Nov 2017 01:04:05 -0500 Original-Received: from mail-qt0-f181.google.com ([209.85.216.181]:35741) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eIq2t-0000vQ-Pl for 29442@debbugs.gnu.org; Sun, 26 Nov 2017 01:04:04 -0500 Original-Received: by mail-qt0-f181.google.com with SMTP id n32so35570328qtb.2 for <29442@debbugs.gnu.org>; Sat, 25 Nov 2017 22:04:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=+m2UDWmUB/odHjIOorV52KwDlpYGnp6/zJSLkfnslug=; b=IHAxH1uoVF2Zg51LR5uoYsrxvcIRcPK0AcUkcWyQjUH3rHVh1rv/PeSbWC/6bV3VBL guoBmbTwcidN5NVmkjrzaGLc0rVb+K2UYq33xtXJcCXV8yGudnxAVw/AfeBPQbCSm5Z0 Tpqu/lYJV2xgZfkYj02sJZXA1ckecOkLEaD3XGw34XE9d75sTEvjR0ZZg3C0MBG4138a icu7atTUTMghwBTnjBaPNopuCPb4oBT+PwE2D1hKeNYo+2WeCpjN8bwzhhDSBqa2QQ6X mk4m+CxeZ76mGyrAAlWfLbZ0/v4l1UVNFsxaAWVUSD7QGFNd97mN+oGjBOy6vBYY9uBV LTAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=+m2UDWmUB/odHjIOorV52KwDlpYGnp6/zJSLkfnslug=; b=WiDUuO5oF6pMNLZQ4XBnrOr3H3nU+z6aF8oko8NtLDhnJVIBHUgk+KI+X01rt/90Lf Sg05bkkRbNDGNDpwVtmhYcS8YmJYvv/akM1LT/7yVSDd+avJA89HnxBl6zifTyz7b1TL e0TBmFoSZTtc2Tf88nL9po6BHPhzvaWmYdJPibejTUZfn1G4WPErz/JUvnF74uYII+y9 nm1m0Y6OLUs9F9OKo1KZp5bffoFeEbvNaIclU2crjCVe+XgKpR/PRY5yA6UrfNbzEdcx 0rvD3RdnxfBbuK4lWcWJf4lU3GEu2VwdNxUv5xHw7G4nYycKxlm6Q7ew03BerLFcXBCY h6hw== X-Gm-Message-State: AJaThX7ytWX26vrT6uV9CO/tKOUw5YI4HaiNqcG/DUY15KeSlhL75MwJ 6n6+g+apoXJfcq+pU6fWPPvKMQWzjOcvQ/02mJM= X-Google-Smtp-Source: AGs4zMaw28Fva3GFVTj3yRfIiMpmtQ76LTiY4cw+DXPjXo6gFEbUiV9GQV2UeQQDPlF1uQo4Yskm7J44REgcOXIpEuA= X-Received: by 10.200.44.243 with SMTP id 48mr49057038qtx.99.1511676238543; Sat, 25 Nov 2017 22:03:58 -0800 (PST) Original-Received: by 10.237.43.166 with HTTP; Sat, 25 Nov 2017 22:03:58 -0800 (PST) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140398 Archived-At: --001a114050c636bf1c055edc8da4 Content-Type: text/plain; charset="UTF-8" The shell-command works if I use the function as below. (defun my-dired-open-execute () (interactive) (let* ((file-name (dired-get-file-for-visit)) (file-ext (file-name-extension file-name)) (case-fold-search t)) (if (file-exists-p file-name) (cond ((and (string-match "^r$" file-ext) (file-remote-p file-name)) (let ((default-directory (or (and (eq major-mode 'dired-mode) (dired-current-directory)) default-directory))) (shell-command (format "nohup /bin/apps64/software/R/R CMD BATCH --no-restore --no-save --slave \"%s\" &" (file-name-nondirectory file-name))) )) (t (w32-shell-execute "open" file-name nil 1)))))) --001a114050c636bf1c055edc8da4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdj5UaGUgc2hlbGwtY29tbWFuZCB3b3JrcyBpZiBJIHVzZSB0aGUg ZnVuY3Rpb24gYXMgYmVsb3cuPGJyPjwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+KGRlZnVuIG15 LWRpcmVkLW9wZW4tZXhlY3V0ZSAoKTxicj7CoCAoaW50ZXJhY3RpdmUpPGJyPsKgIChsZXQqICgo ZmlsZS1uYW1lIChkaXJlZC1nZXQtZmlsZS1mb3ItdmlzaXQpKTxicj7CoMKgwqDCoMKgwqDCoMKg IChmaWxlLWV4dCAoZmlsZS1uYW1lLWV4dGVuc2lvbiBmaWxlLW5hbWUpKTxicj7CoMKgwqDCoMKg wqDC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