1 files changed, 1 insertions(+), 1 deletions(-)
M .bashrc
M .bashrc => .bashrc +1 -1
@@ 170,7 170,7 @@ case "$TERM" in
;;
esac
# bash complains if $() faces null
-PCMD=$(tr -d '\000' < /proc/$PPID/cmdline)
+[ -f "/proc/$PPID/cmdline" ] && PCMD=$(tr -d '\000' < /proc/$PPID/cmdline)
[ -z "$PTERM" ] && INITLVL=1
PTERM=${PTERM:-$TERM/}
case "$PCMD" in