OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: /etc/aliases

From: Wietse Venema (wietseporcupine.org)
Date: Thu May 01 2003 - 08:58:41 CDT


Lukas Ruf:
> Dear all,
>
> having searched the web and read the man pages, I am not sure if I
> need to put a comma after every address in the expansion or not.
> i.e.
>
> # version 1
> alias1: value1, value2

aliases(5) says: An alias definition has the form name: value1,
value2, .... So, this is valid.

> # version 2
> alias2: value3,
> value4,
> value5

aliases(5) says: A logical line starts with non-whitespace text.
A line that starts with whitespace continues a logical line. So,
this is valid.

> # version 3
> alias3: value6
> value7
> value8
>
> My question is: are they all valid? Or is there any restriction? I
> only found "comma-separated" on the web....

Hey, this is ridiculous. aliases(5) says that the comma-separated
form is valid. If you use syntax that is not in te manual page then
the result is undefined. It could result in an error message, or
it could result in an address that is mis-parsed.

        Wietse