From 0c4bf7de3604eeb00e2cf590867d43ceb2f0f85d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 6 Dec 2018 14:25:39 +1300 Subject: Remove unneeded semicolon from sh "for VAR ; do" It turns out the semicolon belongs to the "in" syntax, and is optional without it. --- sh/profile.d/options.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/profile.d/options.sh b/sh/profile.d/options.sh index 73f62243..f89967cb 100644 --- a/sh/profile.d/options.sh +++ b/sh/profile.d/options.sh @@ -22,7 +22,7 @@ options() { # Iterate through remaining arguments (desired options), creating files to # show they're available if found in the help output - for opt ; do + for opt do command -p grep -q -- '[^[:alnum:]]--'"$opt"'[^[:alnum:]]' help && touch -- "$opt" done -- cgit v1.2.3