]> git.ameliathe1st.gay Git - site-web.git/commitdiff
Correction d'esh
authorAmélia Coutard-Sander <git@ameliathe1st.gay>
Sat, 21 Jun 2025 02:09:09 +0000 (04:09 +0200)
committerAmélia Coutard-Sander <git@ameliathe1st.gay>
Sat, 21 Jun 2025 02:09:09 +0000 (04:09 +0200)
esh.sh

diff --git a/esh.sh b/esh.sh
index 81922a29485df976ce33e15bd16c82ac6188a05b..62fe66745dd4de59797ccda0a61a32cf9e97a990 100755 (executable)
--- a/esh.sh
+++ b/esh.sh
@@ -1,6 +1,6 @@
 while read -r line; do
        case "$line" in
        "#"*) echo "$(echo "$line" | sed "s/#//")";;
-       *) echo "echo '$(echo "$line" | sed "s/'/''/g")'";;
+       *) echo "echo '$(echo "$line" | sed "s/'/'\\\\''/g")'";;
        esac
 done | sh