Comments - Was: Fingerprints and Key-IDs

ilf ilf at zeromail.org
Sat Aug 6 16:36:09 CEST 2016


Werner Koch:
>> > default-key 0xCBB15A68EF3AC804875D5C4E153FE398821C8394 # ilf
> That is not a common comment pattern.  The common pattern is to ignore 
> empty lines and lines with a '#' as first non white space character.  A 
> '#' somewhere on the line requires a more explicit grammar to consider 
> it has a "ignore the rest of the line".

I beg to differ. A few examples, randomly taken from GNU manuals:

> In the awk language, a comment starts with the number sign character 
> (‘#’) and continues to the end of the line. The ‘#’ does not have to 
> be the first character on the line.

https://www.gnu.org/software/gawk/manual/html_node/Comments.html

> a word beginning with ‘#’ causes that word and all remaining 
> characters on that line to be ignored.

https://www.gnu.org/software/bash/manual/html_node/Comments.html#Comments

> In the Octave language, a comment starts with either the sharp sign 
> character, ‘#’, or the percent symbol ‘%’ and continues to the end of 
> the line. Any text following the sharp sign or percent symbol is 
> ignored by the Octave interpreter and not executed. The following 
> example shows whole line and partial line comments.
>   disp ("Blast Off!");  # Rocket leaves pad

https://www.gnu.org/software/octave/doc/v4.0.0/Single-Line-Comments.html#Single-Line-Comments

> Comments in m4 are normally delimited by the characters ‘#’ and 
> newline.
>      `quoted text' # `commented text'

https://www.gnu.org/software/m4/manual/m4-1.4.15/html_node/Comments.html

> According to Posix, Make comments start with # and continue until an 
> unescaped newline is reached.
>      $ make   # GNU make

https://www.gnu.org/software/autoconf/manual/autoconf-2.66/html_node/Backslash_002dNewline-Comments.html

-- 
ilf

Über 80 Millionen Deutsche benutzen keine Konsole. Klick dich nicht weg!
		-- Eine Initiative des Bundesamtes für Tastaturbenutzung
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: </pipermail/attachments/20160806/6547c897/attachment-0001.sig>


More information about the Gnupg-devel mailing list