Reply to post:

Linus Torvalds in sweary rant about punctuation in kernel comments

Malcolm Weir Silver badge

OK, Stupid...

No. No, it's not trivial. Consider how you'd handle:

printf("*/ or \"/*");

To do it right, you need a lexical analyzer. Of course it can be done, but doing it with bash would be a nightmare.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019