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 --- sh/profile.d/options.sh | 2 +- sh/shrc.d/gt.sh | 4 ++-- sh/shrc.d/hgrep.sh | 2 +- sh/shrc.d/pd.sh | 2 +- sh/shrc.d/rd.sh | 2 +- sh/shrc.d/scr.sh | 2 +- sh/shrc.d/sd.sh | 4 ++-- sh/shrc.d/ud.sh | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) (limited to 'sh') diff --git a/sh/profile.d/options.sh b/sh/profile.d/options.sh index c60dd140..ad9d43ab 100644 --- a/sh/profile.d/options.sh +++ b/sh/profile.d/options.sh @@ -1,4 +1,4 @@ -# Cache the options available to certain programs. Run all this in a subshell +# Cache the options available to certain programs. Run all this in a subshell # (none of its state needs to endure in the session) ( options() { diff --git a/sh/shrc.d/gt.sh b/sh/shrc.d/gt.sh index 193a2996..ef24a4bb 100644 --- a/sh/shrc.d/gt.sh +++ b/sh/shrc.d/gt.sh @@ -1,5 +1,5 @@ -# If the argument is a directory, change to it. If it's a file, change to its -# parent. Stands for "get to". +# If the argument is a directory, change to it. If it's a file, change to its +# parent. Stands for "get to". gt() { # Check argument count diff --git a/sh/shrc.d/hgrep.sh b/sh/shrc.d/hgrep.sh index 9d7542b4..ba36ec99 100644 --- a/sh/shrc.d/hgrep.sh +++ b/sh/shrc.d/hgrep.sh @@ -1,4 +1,4 @@ -# Search shell history file for a pattern. If you put your whole HISTFILE +# Search shell history file for a pattern. If you put your whole HISTFILE # contents into memory, then you probably don't need this, as you can just do: # # $ history | grep PATTERN diff --git a/sh/shrc.d/pd.sh b/sh/shrc.d/pd.sh index d5257ba5..77f6bae9 100644 --- a/sh/shrc.d/pd.sh +++ b/sh/shrc.d/pd.sh @@ -1,6 +1,6 @@ # Attempt to change into the argument's parent directory; This is intended for # use when you've got a file path in a variable, or in history, or in Alt+., -# and want to quickly move to its containing directory. In the absence of an +# and want to quickly move to its containing directory. In the absence of an # argument, this just shifts up a directory, i.e. `cd ..` # # Note this is equivalent to `ud 1`. diff --git a/sh/shrc.d/rd.sh b/sh/shrc.d/rd.sh index 5fbd5ac5..e6d761a6 100644 --- a/sh/shrc.d/rd.sh +++ b/sh/shrc.d/rd.sh @@ -1,5 +1,5 @@ # Replace the first instance of the first argument string with the second -# argument string in $PWD, and make that the target of the cd builtin. This is +# argument string in $PWD, and make that the target of the cd builtin. This is # to emulate a feature of the `cd` builtin in Zsh that I like, but that I think # should be a separate command rather than overloading `cd`. # diff --git a/sh/shrc.d/scr.sh b/sh/shrc.d/scr.sh index 14a58ad1..19367ffc 100644 --- a/sh/shrc.d/scr.sh +++ b/sh/shrc.d/scr.sh @@ -1,5 +1,5 @@ # Create a temporary directory and change into it, to stop me putting stray -# files into $HOME, and making the system do cleanup for me. Single optional +# files into $HOME, and making the system do cleanup for me. Single optional # argument is the string to use for naming the directory; defaults to "scr". scr() { # shellcheck disable=SC2164 diff --git a/sh/shrc.d/sd.sh b/sh/shrc.d/sd.sh index 58d1a375..04b50f6d 100644 --- a/sh/shrc.d/sd.sh +++ b/sh/shrc.d/sd.sh @@ -72,7 +72,7 @@ sd() { # Check the number of matches case $# in - # One match? Must be $PWD, so no siblings--throw in 0 just in + # One match? Must be $PWD, so no siblings--throw in 0 just in # case, but that Shouldn't Happen (TM) 0|1) printf >&2 'sd(): No siblings\n' @@ -99,7 +99,7 @@ sd() { esac ;; - # Anything else? Multiple siblings--user will need to specify + # Anything else? Multiple siblings--user will need to specify *) printf >&2 'sd(): Multiple siblings\n' return 1 diff --git a/sh/shrc.d/ud.sh b/sh/shrc.d/ud.sh index f7f33caf..419f0446 100644 --- a/sh/shrc.d/ud.sh +++ b/sh/shrc.d/ud.sh @@ -9,7 +9,7 @@ ud() { fi set -- "${1:-1}" "${2:-"$PWD"}" - # Check first argument, number of steps upward. "0" is weird, but valid; + # Check first argument, number of steps upward. "0" is weird, but valid; # "-1" however makes no sense at all if [ "$1" -lt 0 ] ; then printf >&2 'ud(): Invalid step count\n' -- cgit v1.2.3