mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC3003 (markdown)
@@ -34,7 +34,7 @@ IFS=$' \t\n'
|
||||
|
||||
### Rationale:
|
||||
|
||||
You are using the interpolated string Bashism `$'..'` in a script that declares itself as POSIX sh (e.g. via `#!/bin/sh`).
|
||||
ANSI-C quoting, `$'..'`, is a `bash` extension, which is not supported by POSIX `sh`.
|
||||
|
||||
To ensure the script runs correctly on other systems, either switch to Bash, or rewrite it in a POSIX compatible way.
|
||||
|
||||
|
Reference in New Issue
Block a user