[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor e804473 113/140: with-editor-export-editor: Us
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor e804473 113/140: with-editor-export-editor: Use printf instead of echo |
Date: |
Fri, 6 Aug 2021 12:51:31 -0400 (EDT) |
branch: elpa/with-editor
commit e804473ff9b2621a58b9184f6cc7cd7740936d47
Author: Stéphane Soppera <soppera@users.noreply.github.com>
Commit: Jonas Bernoulli <jonas@bernoul.li>
with-editor-export-editor: Use printf instead of echo
The `-e' flag of `echo' that makes the command interpret
backslash-escaped sequences (in particular "\037") is not supported
in all shells.
Shells that do not support it print the flag instead.
So here we replace `echo' by `printf' which seems to be better
supported and does the interpretation of backslash-escaped sequence
by default.
Re #71.
Closes #72.
---
with-editor.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/with-editor.el b/with-editor.el
index 4e439b7..03fd979 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -176,7 +176,7 @@ please see
https://github.com/magit/magit/wiki/Emacsclient."))))
(defcustom with-editor-sleeping-editor "\
sh -c '\
-echo -e \"WITH-EDITOR: $$ OPEN $0\\037 IN $(pwd)\"; \
+printf \"WITH-EDITOR: $$ OPEN $0\\037 IN $(pwd)\\n\"; \
sleep 604800 & sleep=$!; \
trap \"kill $sleep; exit 0\" USR1; \
trap \"kill $sleep; exit 1\" USR2; \
- [nongnu] elpa/with-editor 38df9bf 094/140: manual: Prevent evaluation of code blocks, (continued)
- [nongnu] elpa/with-editor 38df9bf 094/140: manual: Prevent evaluation of code blocks, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 7b8520b 096/140: with-editor-kill-buffer-noop: When killing Emacs silently cancel, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 4f06aba 102/140: with-editor-usage-message: Cosmetics, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 19ebf53 104/140: Handle async-bytecomp-allowed-packages properly, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d5c7772 105/140: with-editor-kill-buffer-noop: Revert previous kludge, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 814777c 107/140: Revert "Add .github/FUNDING.yml", Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d3150a5 110/140: make: Copy indices for htmlified info manuals, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 7e0bf75 111/140: Release version 2.9.1, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 4fe66d4 114/140: Silence byte-compiler, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor f25a707 115/140: make: No longer add dash to ORG_LOAD_PATH, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor e804473 113/140: with-editor-export-editor: Use printf instead of echo,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor 7ec873b 117/140: Release version 2.9.2, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d79c324 118/140: Add an advice for `make-process', Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 48ca9bb 119/140: Release version 2.9.3, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor c5e2141 120/140: manual: Fix location of LocalWords, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor efafd48 123/140: Release version 2.9.4, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor c4768f5 125/140: server-switch-buffer: Adjust advice for emacs 28, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 6735180 128/140: Suppress error if vterm module cannot be build, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b439749 130/140: Remove async-bytecomp kludge, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 2848a90 131/140: license: Update URLs and cleanup whitespace, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 139ef39 129/140: Fix previous commit, Jonas Bernoulli, 2021/08/06