From 685234af1f48e976fd57ec04d4a253bcabfad4ea Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 21 Jun 2016 11:26:23 +1200 Subject: Remove unneeded linebreak backslashes Handy command: $ find bin sh bash -type f -exec grep \ -e '|| \\$' \ -e '&& \\$' \ -e '^\s*||' \ -e '^\s*&&' \ {} + --- bash/bashrc.d/path.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bash/bashrc.d/path.bash') diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash index d705b0ca..5f78e20e 100644 --- a/bash/bashrc.d/path.bash +++ b/bash/bashrc.d/path.bash @@ -225,8 +225,7 @@ _path() { IFS=: read -d '' -a promptarr < <(printf '%s\0' "$PATH") local part for part in "${promptarr[@]}" ; do - [[ $part == "${COMP_WORDS[COMP_CWORD]}"* ]] \ - || continue + [[ $part == "${COMP_WORDS[COMP_CWORD]}"* ]] || continue COMPREPLY[${#COMPREPLY[@]}]=$(printf '%q\0' "$part") done ;; -- cgit v1.2.3