Vidar Holen
Vidar Holen
If you are running on BusyBox, you probably don't have Bash. The problem with `tr 'A-Z' 'a-z'` is that it's canonically used to translate from uppercase to lowercase, but fails...
This has been fixed in #2023 for `:-`. The others (aside from `:=` which doesn't work on positional parameters) are included in 553a80f77ad. Thanks!
@gmolveau This is one of many issues that are currently difficult to implement robustly due to ShellCheck's lack of robust dataflow analysis, so unfortunately it'll be a while
Unfortunately there's no great way to do this. Maybe there should be some functionality for letting shellcheck source a file without the script doing so. In your second case, ShellCheck...
I checked POSIX.1-2017 aka [Open Group Base Specifications Issue 7](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html) and couldn't find a mention of it. Are you saying that it has been accepted for an upcoming version of...
Ow, that's embarrassing. Not the easiest bug to spot in a code review: ``` parseProblemAt pos InfoC 1003 "Want to escape a single quote? echo 'This is how it'\''s done'.";...
`'\\'` would be the correct way in terms of `tr`, but shellcheck incorrectly thinks you're trying to escape a `'`. You shouldn't let tooling bugs stop you from doing what's...
The warning for `'[=\\=]'` is a separate bug fixed in 75fb4da (thanks!). Adding escaping will cause `[=]` themselves to be replaced: $ echo 'test][=path' | tr '\[=\\=\]' '/' test///path I...
I'm guessing this PR was posted by accident
No updates, but you're right. Namerefs should be considered auto-used just like exported variables.