mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
In exceptions section, added example of PS4
@@ -36,6 +36,11 @@ If you know that you want the expression literally without expansion, you can [[
|
|||||||
echo 'PATH=$PATH:/usr/local/bin' >> ~/.bashrc
|
echo 'PATH=$PATH:/usr/local/bin' >> ~/.bashrc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
# We also want this variable to output $BASH_SOURCE:$LIN... during an execution trace.
|
||||||
|
PS4='+$BASH_SOURCE:$LINENO:$FUNCNAME: '
|
||||||
|
```
|
||||||
|
|
||||||
ShellCheck also does not warn about escaped expansions in double quotes:
|
ShellCheck also does not warn about escaped expansions in double quotes:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user