tazpkg diff modules/help @ rev 976
misc typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 09 12:03:43 2021 +0000 (2021-11-09) |
parents | d3dbbb43ec78 |
children |
line diff
1.1 --- a/modules/help Sun Feb 12 04:41:23 2017 +0200 1.2 +++ b/modules/help Tue Nov 09 12:03:43 2021 +0000 1.3 @@ -109,7 +109,7 @@ 1.4 :upgrade,up::setup-mirror,sm::add-undigest,setup-undigest::list-undigest:\ 1.5 :remove-undigest:" 1.6 1.7 -if [ ! $(echo $commands | grep -e "[:,]$T[:,]") ]; then 1.8 +if ! echo $commands | grep -qe "[:,]$T[:,]"; then 1.9 try1=$(echo $commands | grep -oe ":[^:]*$T[^:]*:") 1.10 if [ -z "$try1" ]; then 1.11 _ 'Sorry, no help for "%s"' "$QUERY"; newline; exit 0 1.12 @@ -171,7 +171,7 @@ 1.13 1.14 PRE2=$(echo "$OPT0" | sed "s|$OPTA|$OPTB|" | tr '@' '\n' | sed '/O/d; s|L||') 1.15 1.16 -[ ! -z "$TA" ] && T="$T, $TA" 1.17 +[ -n "$TA" ] && T="$T, $TA" 1.18 1.19 title '%s' "$title" 1.20 emsg "$(longline "$PRE2" | sed 's|A|<c 33>|g; s|B|<c 36>|g; s|C|</b>|g; s|D|</c>|g; ')"