mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 11:19:45 +08:00
Updated Template (markdown)
12
Template.md
12
Template.md
@@ -1,19 +1,17 @@
|
||||
## This is a unicode double quote. Delete and retype it.
|
||||
## (Message goes here)
|
||||
|
||||
### Problematic code:
|
||||
|
||||
echo “hello world”
|
||||
(Simple example of problematic code)
|
||||
|
||||
### Correct code:
|
||||
|
||||
echo "hello world"
|
||||
(Simple example of above code, only fixed)
|
||||
|
||||
### Rationale:
|
||||
|
||||
Blog software and word processors frequently replaces ASCII quotes `""` with fancy Unicode quotes, `“”`. To bash, Unicode quotes are considered regular literals and not quotes at all.
|
||||
|
||||
Simply delete them and retype them in your editor.
|
||||
(An explanation of why the code is problematic and how the correct code is an improvement)
|
||||
|
||||
### Contraindications
|
||||
|
||||
If you really want literal Unicode double quotes, you can put them in single quotes (or unicode single quotes in double quotes) to make shellcheck ignore them.
|
||||
(Cases where the user may choose to ignore this warning, if any.)
|
Reference in New Issue
Block a user