aboutsummaryrefslogtreecommitdiff
path: root/etc/sh/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/sh/rc')
-rw-r--r--etc/sh/rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index bcd3b02..3785d30 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -121,7 +121,7 @@ export VG_FLAGS='
--track-origins=yes
--error-exitcode=1
'
-VG_FLAGS="$(echo "$VG_FLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
+VG_FLAGS="$(printf '%s\n' "$VG_FLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
export CFLAGS='
-D_POSIX_C_SOURCE=200809L
@@ -144,7 +144,7 @@ export CFLAGS='
-g
-Werror
'
-CFLAGS="$(echo "$CFLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
+CFLAGS="$(printf '%s\n' "$CFLAGS" | grep . | tr -d '\t' | tr '\n' ' ')"
export CC=gcc
export LEIN_SUPPRESS_USER_LEVEL_REPO_WARNINGS=1
export LEIN_HOME="$XDG_CONFIG_HOME"/leiningen
@@ -363,8 +363,8 @@ g() {
)"
rm -f "$(dirname "$PAT")"/*-g-shell-function
if [ -n "$LINE" ]; then
- FILE="$( echo "$LINE" | cut -d: -f1)"
- NUMBER="$(echo "$LINE" | cut -d: -f2)"
+ FILE="$( printf '%s\n' "$LINE" | cut -d: -f1)"
+ NUMBER="$(printf '%s\n' "$LINE" | cut -d: -f2)"
case "$1" in
"'"*"'")
# Best effort handling of string escaping, since