Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: brian (git@myr.sh)
Date: Sun Sep 24 22:54:11 2023 -0300
Parent: d69feaa
Improved printf
diff --git a/aux.sh b/aux.sh index 91ef1cc..246b1af 100755 --- a/aux.sh +++ b/aux.sh @@ -1,5 +1,5 @@ #!/bin/sh escapehtml() { - printf "$1" | sed -e 's/</</g' -e 's/>/>/g' -e 's/&/&/g' + printf "%s" "$1" | sed -e 's/</</g' -e 's/>/>/g' -e 's/&/&/g' }