From: Simon Ruderich Date: Thu, 24 Oct 2013 20:11:52 +0000 (+0200) Subject: xinitrc: Don't use echo for data from the user. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=472e40aeca23a58e20bcc0fc787c9d98e1f4224a;p=config%2Fdotfiles.git xinitrc: Don't use echo for data from the user. --- diff --git a/xinitrc b/xinitrc index 56834a9..b286dbc 100755 --- 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