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. --- check/bash.sh | 2 +- check/ksh.sh | 2 +- check/sh.sh | 2 +- check/xinit.sh | 2 +- check/zsh.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'check') diff --git a/check/bash.sh b/check/bash.sh index 1f9e1b38..510f2af0 100644 --- a/check/bash.sh +++ b/check/bash.sh @@ -5,7 +5,7 @@ set \ bash/bash_profile \ bash/bashrc \ bash/bashrc.d/*.bash -for bash ; do +for bash do bash -n -- "$bash" || exit done printf 'GNU Bash dotfiles parsed successfully.\n' diff --git a/check/ksh.sh b/check/ksh.sh index f4bade82..cf83bc1f 100644 --- a/check/ksh.sh +++ b/check/ksh.sh @@ -1,7 +1,7 @@ set \ ksh/kshrc \ ksh/kshrc.d/*.ksh -for ksh ; do +for ksh do ksh -n -- "$ksh" || exit done sh -n -- ksh/shrc.d/ksh.sh || exit diff --git a/check/sh.sh b/check/sh.sh index 92910c11..e0162f47 100644 --- a/check/sh.sh +++ b/check/sh.sh @@ -4,7 +4,7 @@ set \ sh/shinit \ sh/shrc \ sh/shrc.d/*.sh -for sh ; do +for sh do sh -n -- "$sh" || exit done printf 'POSIX shell dotfiles parsed successfully.\n' diff --git a/check/xinit.sh b/check/xinit.sh index fa235c9d..ae03b8c2 100644 --- a/check/xinit.sh +++ b/check/xinit.sh @@ -1,7 +1,7 @@ set \ X/xinitrc \ X/xinitrc.d/*.sh -for xinit ; do +for xinit do sh -n -- "$xinit" || exit done printf 'Xinit startup scripts parsed successfully.\n' diff --git a/check/zsh.sh b/check/zsh.sh index ce209584..0170e586 100644 --- a/check/zsh.sh +++ b/check/zsh.sh @@ -2,7 +2,7 @@ set \ zsh/zprofile \ zsh/zshrc.d/*.zsh \ zsh/zshrc -for zsh ; do +for zsh do zsh -n -- "$zsh" || exit done sh -n zsh/profile.d/zsh.sh || exit -- cgit v1.2.3