[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/shell-command+ 806ff76a0e 2/3: Fix parsing "implicit cd
From: |
ELPA Syncer |
Subject: |
[elpa] externals/shell-command+ 806ff76a0e 2/3: Fix parsing "implicit cd" inputs with up-dir abbreviations |
Date: |
Wed, 24 Aug 2022 17:57:56 -0400 (EDT) |
branch: externals/shell-command+
commit 806ff76a0ea119463ca6c9a72c69c31feea91940
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Fix parsing "implicit cd" inputs with up-dir abbreviations
---
shell-command+.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/shell-command+.el b/shell-command+.el
index 1e2e876fa1..5a649b9eb0 100644
--- a/shell-command+.el
+++ b/shell-command+.el
@@ -405,7 +405,9 @@ entire command."
'literal)))
(cmd (match-string-no-properties 4 command))
(all (match-string-no-properties 3 command)))
- (if (or (null dir) (file-directory-p dir))
+ (if (or (null dir) (file-directory-p (shell-command+-expand-path' dir)))
+ ;; FIXME: Avoid hard-coding the `shell-command+-expand-path'
+ ;; check into the parsing function.
(list dir ind cmd all)
(list nil ind dir (format "%s %s" dir all))))))