You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the rule does not recognize hash as a dollar alternative. (The unconditional rendering of hash lines as comments is a GitHub behavior.) I'd be inclined to make what's probably a simple change to address this in the rule, but I worry about the hash/comment scenario being far more common than scenarios with hash/admin behavior. In other words, I worry that a simple fix may make things worse instead of better. This is the first time I remember the issue coming up, so the problem you raise may be relatively rare. I'm open to more input on the matter.
The bash prompt by default shows a
#
when it's running as root,$
otherwise.C-style shells, on the other hand, use the
%
symbol.However,
MD014
only warns about the$
prompt. That should be configurable, for example:Examples
please do not run the commands reported in the examples lol
Example 1
No warning, as expected
Example 2
Warning, as expected
Example 3
# :(){ :|:& };: [1] 1234
No warning, as expected
Example 4
# :(){ :|:& };: &> /dev/null
No warning, unexpected?
Example 5
No warning, as expected
Example 6
$ pkexec # :(){ :|:& };: &> /dev/null
No warning, unexpected?
The text was updated successfully, but these errors were encountered: