]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
xinitrc: Don't use echo for data from the user.
authorSimon Ruderich <simon@ruderich.org>
Thu, 24 Oct 2013 20:11:52 +0000 (22:11 +0200)
committerSimon Ruderich <simon@ruderich.org>
Thu, 24 Oct 2013 20:11:52 +0000 (22:11 +0200)
xinitrc

diff --git a/xinitrc b/xinitrc
index 56834a9b261dfb0539682e36de083934aec12ac9..b286dbc9615534d7489f780d006ceac1fd53807f 100755 (executable)
--- a/xinitrc
+++ b/xinitrc
@@ -42,7 +42,7 @@ error() {
         xmessage "$@" &
     else
         # Log message to a file which is displayed by my Zsh setup on startup.
-        echo "$*" >> "$HOME/.xinitrc.errors"
+        printf '%s\n' "$*" >>"$HOME/.xinitrc.errors"
     fi
 }
 # Save PID of the most recently started background process. Used to terminate