Introduction
Introduction Statistics Contact Development Disclaimer Help
ttest: echo is not portable when using backslash - neatvi - [fork] simple vi-ty…
git clone git://src.adamsgaard.dk/neatvi
Log
Files
Refs
README
---
commit 0aeab359ed17ba7247ce8cc1619a374a58ba8abe
parent debb1a79efbabb95f0ce6383bc091c96b5bf1edc
Author: Ali Gholami Rudi <[email protected]>
Date: Sat, 9 Oct 2021 18:25:43 +0330
ttest: echo is not portable when using backslash
Diffstat:
M test/e08.sh | 2 +-
M test/e0e.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/e08.sh b/test/e08.sh
t@@ -4,7 +4,7 @@ echo ":a"
echo "abc"
echo "axy"
echo "."
-echo ':%s/a(..)/\\1a/g'
+printf ':%%s/a(..)/\\1a/g\n'
echo ":w"
echo ":q"
diff --git a/test/e0e.sh b/test/e0e.sh
t@@ -4,7 +4,7 @@ echo ":a"
echo "abc"
echo "def"
echo "."
-echo ':%s/(b.*)$/(\\1)/g'
+printf ':%%s/(b.*)$/(\\1)/g\n'
echo ":w"
echo ":q"
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.