Mercurial > ec-dotfiles
comparison bash @ 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 |
comparison
equal
deleted
inserted
replaced
51:4496c7bf953d | 52:d07ce874a280 |
---|---|
27 ;; | 27 ;; |
28 *BSD) | 28 *BSD) |
29 _has_rm_I=y | 29 _has_rm_I=y |
30 ;; | 30 ;; |
31 esac | 31 esac |
32 if [ $_has_rm_I = y ]; then | 32 if [ "${_has_rm_I}" = y ]; then |
33 alias rm="rm -I" | 33 alias rm="rm -I" |
34 else | 34 else |
35 alias rm="rm -i" | 35 alias rm="rm -i" |
36 fi | 36 fi |
37 | 37 |
38 if [ $_has_gnu_ls = y ]; then | 38 if [ "${_has_gnu_ls}" = y ]; then |
39 alias ls="ls -F --color=auto" | 39 alias ls="ls -F --color=auto" |
40 else | 40 else |
41 alias ls="ls -F" | 41 alias ls="ls -F" |
42 fi | 42 fi |
43 | 43 |