From b7ce245e859b946deee740bc617f2b997a52e9dd Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 27 Dec 2018 00:01:15 +1300 Subject: Two-space sentences in shell comments --- bin/ax.sh | 2 +- bin/chn.mi5 | 2 +- bin/dub.sh | 2 +- bin/han.bash | 2 +- bin/mi5.awk | 6 +++--- bin/pa.sh | 2 +- bin/paz.sh | 2 +- bin/rep.sh | 4 ++-- bin/rndi.awk | 2 +- bin/sta.sh | 2 +- bin/xrbg.sh | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) (limited to 'bin') diff --git a/bin/ax.sh b/bin/ax.sh index 0007cbed..50b839cf 100644 --- a/bin/ax.sh +++ b/bin/ax.sh @@ -18,5 +18,5 @@ esac # Important note: there's little stopping the user from putting a fully-fledged # Awk program into the expression; don't use this anywhere that code injection -# could wreck your life. See manual page ax(1df). +# could wreck your life. See manual page ax(1df). awk -v form="$form" 'BEGIN{printf form,('"$expr"');exit}' diff --git a/bin/chn.mi5 b/bin/chn.mi5 index dfc1000c..28178ac0 100644 --- a/bin/chn.mi5 +++ b/bin/chn.mi5 @@ -11,7 +11,7 @@ fi c=$1 shift -# Check the repetition count looks sane. Zero is fine! +# Check the repetition count looks sane. Zero is fine! if [ "$c" -lt 0 ] ; then printf >&2 '%s: Nonsensical negative count\n' "$self" exit 2 diff --git a/bin/dub.sh b/bin/dub.sh index efdae4e9..e3d16709 100644 --- a/bin/dub.sh +++ b/bin/dub.sh @@ -9,7 +9,7 @@ dir=${1:-.} lim=${2:-10} # Enter the target dir or bail cd -- "$dir" || exit -# Some find(1) devilry to deal with newlines as safely as possible. The idea is +# Some find(1) devilry to deal with newlines as safely as possible. The idea is # not even to touch them, and warn about their presence; better the results are # wrong than malformed nl=$(printf '\n/') diff --git a/bin/han.bash b/bin/han.bash index 3c4f6637..e44ffb97 100644 --- a/bin/han.bash +++ b/bin/han.bash @@ -1,7 +1,7 @@ # Abstract calls to Bash help vs man(1) self=han -# Ensure we're using at least version 2.05. Weird arithmetic syntax needed here +# Ensure we're using at least version 2.05. Weird arithmetic syntax needed here # due to leading zeroes and trailing letters in some 2.x version numbers (e.g. # 2.05a). # shellcheck disable=SC2128 diff --git a/bin/mi5.awk b/bin/mi5.awk index 7acb6f3b..c5ca7aff 100644 --- a/bin/mi5.awk +++ b/bin/mi5.awk @@ -55,7 +55,7 @@ bmac && NF { # Start off neither quoting nor macroing. iquo = imac = 0 - # Crude and slow, clansman. Your parser was no better than that of a clumsy + # Crude and slow, clansman. Your parser was no better than that of a clumsy # child. for (i = 1; i <= length(src); ) { @@ -100,8 +100,8 @@ bmac && NF { # Escape quote terminators if (substr(src, i, length(unquote)) == unquote) { - # Dear Mr. President. There are too many variables nowadays. - # Please eliminate three. I am NOT a crackpot. + # Dear Mr. President. There are too many variables nowadays. + # Please eliminate three. I am NOT a crackpot. dst = dst unquote unquote quote i += length(unquote) diff --git a/bin/pa.sh b/bin/pa.sh index 4cfa9dce..7e3e14f8 100644 --- a/bin/pa.sh +++ b/bin/pa.sh @@ -1,3 +1,3 @@ -# Print arguments, one per line. Compare paz(1df). +# Print arguments, one per line. Compare paz(1df). [ "$#" -gt 0 ] || exit 0 printf '%s\n' "$@" diff --git a/bin/paz.sh b/bin/paz.sh index e9b81bd7..32d2355f 100644 --- a/bin/paz.sh +++ b/bin/paz.sh @@ -1,3 +1,3 @@ -# Print arguments, terminated by null chars. Compare pa(1df). +# Print arguments, terminated by null chars. Compare pa(1df). [ "$#" -gt 0 ] || exit 0 printf '%s\0' "$@" diff --git a/bin/rep.sh b/bin/rep.sh index e53cbac3..522187b6 100644 --- a/bin/rep.sh +++ b/bin/rep.sh @@ -11,13 +11,13 @@ fi c=$1 shift -# Check the repetition count looks sane. Zero is fine! +# Check the repetition count looks sane. Zero is fine! if [ "$c" -lt 0 ] ; then printf >&2 '%s: Nonsensical negative count\n' "$self" exit 2 fi -# Run the command the specified number of times. Stop immediately as soon as a +# Run the command the specified number of times. Stop immediately as soon as a # run fails. while [ "${n=1}" -le "$c" ] ; do "$@" || exit diff --git a/bin/rndi.awk b/bin/rndi.awk index 02e0574f..7d9c640b 100644 --- a/bin/rndi.awk +++ b/bin/rndi.awk @@ -1,4 +1,4 @@ -# Get a low-quality random number between two integers. Depending on the awk +# Get a low-quality random number between two integers. Depending on the awk # implementation, if you don't have rnds(1df) available to generate a seed of # sufficient quality, you might get very predictable random numbers based on # the current epoch second. diff --git a/bin/sta.sh b/bin/sta.sh index 5736842a..a32e87f6 100644 --- a/bin/sta.sh +++ b/bin/sta.sh @@ -1,5 +1,5 @@ # Print list of sls(1df) hostnames that exit 0 when a connection is attempted -# and the optional given command is run. Discard stdout, but preserve stderr. +# and the optional given command is run. Discard stdout, but preserve stderr. sls | while read -r hostname ; do # shellcheck disable=SC2029 ssh -nq -- "$hostname" "$@" >/dev/null || continue diff --git a/bin/xrbg.sh b/bin/xrbg.sh index 617a9b43..0c7262c0 100644 --- a/bin/xrbg.sh +++ b/bin/xrbg.sh @@ -1,3 +1,3 @@ -# Apply a random background image. Requires rndf(1df) and feh(1). +# Apply a random background image. Requires rndf(1df) and feh(1). bg=$(rndf "${XBACKGROUNDS:-"$HOME"/.xbackgrounds}") || exit feh --bg-scale --no-fehbg -- "$bg" -- cgit v1.2.3