From 64cef08c717b377ef7199335733a89e6a0bd9143 Mon Sep 17 00:00:00 2001 From: Lucas Ramage Date: Tue, 3 May 2022 20:20:30 -0400 Subject: [PATCH] Fix typo --- SC2060.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2060.md b/SC2060.md index 6f858a7..00228b6 100644 --- a/SC2060.md +++ b/SC2060.md @@ -14,7 +14,7 @@ tr -cd '[:digit:]' ### Rationale: -From the shell's point of view, unquoted `[:digit:]` is a glob equivalent to `[dgit:]` that matches any single character filename from the group, such as `d` or `t`, in the current directory. +From the shell's point of view, unquoted `[:digit:]` is a glob equivalent to `[digit:]` that matches any single character filename from the group, such as `d` or `t`, in the current directory. If someone starts learning D and creates a directory named `d` to hold the source code, the glob will be expanded and the script will end up executing `tr -cd d` instead, which is clearly unintended.