From 49ec7982503778913b3bee69ab40942d1e7bb7b5 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 19 Feb 2014 10:36:12 +1300 Subject: Remove unneeded ${...} wraps around array derefs Arrays can be dereferenced in arithmetic context, which I didn't realise until I actually tried it. This looks neater. --- bash/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc') diff --git a/bash/bashrc b/bash/bashrc index defda393..3aa963d4 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -64,7 +64,7 @@ shopt -s shift_verbose shopt -u sourcepath # These options only exist since Bash 4.0-alpha -if ((${BASH_VERSINFO[0]} >= 4)) ; then +if ((BASH_VERSINFO[0] >= 4)) ; then # Warn me about stopped jobs when exiting shopt -s checkjobs # Autocorrect fudged paths during completion -- cgit v1.2.3