changeset 52:d07ce874a280

[bash] securing test. Should use bashism but I hate bashism.
author Edho Prima Arief <me@myconan.net>
date Wed, 27 Apr 2011 11:50:03 -0400
parents 4496c7bf953d
children b9db5d89aae3
files bash
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bash	Wed Apr 27 22:43:00 2011 +0700
+++ b/bash	Wed Apr 27 11:50:03 2011 -0400
@@ -29,13 +29,13 @@
     _has_rm_I=y
   ;;
 esac
-if [ $_has_rm_I = y ]; then
+if [ "${_has_rm_I}" = y ]; then
   alias rm="rm -I"
 else
   alias rm="rm -i"
 fi
 
-if [ $_has_gnu_ls = y ]; then
+if [ "${_has_gnu_ls}" = y ]; then
   alias ls="ls -F --color=auto"
 else
   alias ls="ls -F"