nixpulvis / oursh

Your comrade through the perilous world of UNIX.
http://nixpulvis.com/oursh/oursh
MIT License
67 stars 6 forks source link

Comments #63

Closed nixpulvis closed 3 years ago

nixpulvis commented 3 years ago

Ignore everything after a # symbol unless quoted or otherwise noted.

If the current character is a '#', it and all subsequent characters up to, but excluding, the next <newline> shall be discarded as a comment. The <newline> that ends the line is not considered part of the comment.

fixes #56

nixpulvis commented 3 years ago

Test "`echo a #`" from: 2.6.3 Command Substitution https://stackoverflow.com/questions/43815860/posix-shell-comments-in-command-substitutions