emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/comint-mime 55e33a653f: On macOS, realpath does not acc


From: ELPA Syncer
Subject: [elpa] externals/comint-mime 55e33a653f: On macOS, realpath does not accept -e switch
Date: Sun, 28 May 2023 12:57:39 -0400 (EDT)

branch: externals/comint-mime
commit 55e33a653fcf3c5d789a9e22553ae9befd93bc99
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    On macOS, realpath does not accept -e switch
    
    Fixes #17.
---
 comint-mime.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/comint-mime.sh b/comint-mime.sh
index b6f07e73cf..537559fe07 100755
--- a/comint-mime.sh
+++ b/comint-mime.sh
@@ -19,7 +19,7 @@ Display contents of FILE as mime TYPE."
         fi
         base64 | xargs -0 printf '\033]5151;{"type":"%s"}\n%s\033\\\n' "$type"
     else
-        file=$(realpath -e "$1") || return 1
+        file=$(realpath "$1") || return 1
         [ -n "$type" ] || type=$(file -b --mime "$file")
         printf '\033]5151;{"type":"%s"}\nfile://%s%s\033\\\n' "$type" "$(uname 
-n)" "$file"
     fi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]