From 18d31e8c13cf8ae97a16bfcf949dbae5391a47f2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Dec 2018 02:33:33 +1300 Subject: Break up a couple of long lines --- bash/bash_completion.d/man.bash | 4 +++- bash/bash_completion.d/path.bash | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bash/bash_completion.d/man.bash b/bash/bash_completion.d/man.bash index e4175837..ffef48ec 100644 --- a/bash/bash_completion.d/man.bash +++ b/bash/bash_completion.d/man.bash @@ -58,7 +58,9 @@ _man() { for manpath in "${manpaths[@]}" ; do [[ -n $manpath ]] || continue if [[ -n $section ]] ; then - for page in "$manpath"/"$subdir"/"$word"*."$section"?(.[glx]z|.bz2|.lzma|.Z) ; do + for page in \ + "$manpath"/"$subdir"/"$word"*."$section"?(.[glx]z|.bz2|.lzma|.Z) + do pages[${#pages[@]}]=$page done else diff --git a/bash/bash_completion.d/path.bash b/bash/bash_completion.d/path.bash index 9aab8488..ce494bd4 100644 --- a/bash/bash_completion.d/path.bash +++ b/bash/bash_completion.d/path.bash @@ -49,7 +49,8 @@ _path() { # Complete with directories from PATH remove) local -a promptarr - IFS=: read -rd '' -a promptarr < <(printf '%s\0' "$PATH") + IFS=: read -rd '' -a promptarr < \ + <(printf '%s\0' "$PATH") local part for part in "${promptarr[@]}" ; do case $part in -- cgit v1.2.3