# HG changeset patch # User Edho Prima Arief # Date 1303919403 14400 # Node ID d07ce874a280d245da3c0e171ba2aa0e537580cd # Parent 4496c7bf953d4e411ff13c358a67bdb8108f9730 [bash] securing test. Should use bashism but I hate bashism. diff -r 4496c7bf953d -r d07ce874a280 bash --- 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"