From 4e26fe7685ae4df5c80b4f706f2fe1d56622c95c Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Mon, 16 Aug 2021 21:52:36 -0700 Subject: [PATCH] Updated SC2298 (markdown) --- SC2298.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2298.md b/SC2298.md index 6bcc15e..6d412ec 100644 --- a/SC2298.md +++ b/SC2298.md @@ -39,7 +39,7 @@ ShellCheck found a parameter expansion `${..}` where the first element was a sec In the first example, the extra `$` was unintentional and should simply be deleted. -In the second example, `${$var##*/}` was used in the hopes that it would expand to `${myvar##*/}` and subsequently strip the path. This is not possible, and `var` must instead be expanded indirectly in a separate step, before the path can be stripped as usual. +In the second example, `${$var##*/}` was used in the hopes that it would expand to `${myvar##*/}` and subsequently strip the path. This is not possible, and `var` must instead be expanded indirectly in a separate step, before the path can be stripped as usual. More information and other approaches can be found in the description of [[SC2082]]. ### Exceptions: