# HG changeset patch # User Oleksandr Gavenko # Date 1319579237 -10800 # Node ID 8f3d4826aec27ac25b902351657cb2a7d47065ea # Parent 1ae5fbcaea7c7b8bdb8f674b60593683f7f6e3e2 Remove '$' sign from arithmetic contexts. diff -r 1ae5fbcaea7c -r 8f3d4826aec2 .bashrc --- a/.bashrc Tue Oct 25 22:19:01 2011 +0300 +++ b/.bashrc Wed Oct 26 00:47:17 2011 +0300 @@ -203,15 +203,15 @@ complete -b builtin _hgsyncew() { - local cur=${COMP_WORDS[$COMP_CWORD]} + local cur=${COMP_WORDS[COMP_CWORD]} COMPREPLY=( $(compgen -W "--push" -- $cur) ) return 0 } complete -F _hgsyncew -o nospace hgsyncew _pathsearch() { - local prev cur=${COMP_WORDS[$COMP_CWORD]} - [[ $COMP_CWORD > 0 ]] && prev=${COMP_WORDS[(($COMP_CWORD-1))]} + local prev cur=${COMP_WORDS[COMP_CWORD]} + [[ $COMP_CWORD > 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]} if [[ $prev = -d ]]; then COMPREPLY=() return 0