diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-27 00:01:15 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-12-27 00:01:15 +1300 |
commit | b7ce245e859b946deee740bc617f2b997a52e9dd (patch) | |
tree | db832ca74e9973279a80733825d8fd36ddb8edab /bin | |
parent | Break up some long lines (diff) | |
download | dotfiles-b7ce245e859b946deee740bc617f2b997a52e9dd.tar.gz dotfiles-b7ce245e859b946deee740bc617f2b997a52e9dd.zip |
Two-space sentences in shell comments
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ax.sh | 2 | ||||
-rw-r--r-- | bin/chn.mi5 | 2 | ||||
-rw-r--r-- | bin/dub.sh | 2 | ||||
-rw-r--r-- | bin/han.bash | 2 | ||||
-rw-r--r-- | bin/mi5.awk | 6 | ||||
-rw-r--r-- | bin/pa.sh | 2 | ||||
-rw-r--r-- | bin/paz.sh | 2 | ||||
-rw-r--r-- | bin/rep.sh | 4 | ||||
-rw-r--r-- | bin/rndi.awk | 2 | ||||
-rw-r--r-- | bin/sta.sh | 2 | ||||
-rw-r--r-- | bin/xrbg.sh | 2 |
11 files changed, 14 insertions, 14 deletions
@@ -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 @@ -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) @@ -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' "$@" @@ -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' "$@" @@ -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. @@ -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" |