Fix su/1 documentation of -

* man/su.1.xml: With getopt, '-' does not need to be the last
	option, but it is recommended for portability.
	Closes https://bugs.launchpad.net/bugs/1100775
This commit is contained in:
Nicolas François 2013-08-04 23:45:31 +02:00
parent 4dbca60435
commit 7903a1b767
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2013-08-04 Nicolas François <nicolas.francois@centraliens.net>
* man/su.1.xml: With getopt, '-' does not need to be the last
option, but it is recommended for portability.
Closes https://bugs.launchpad.net/bugs/1100775
2013-08-04 Nicolas François <nicolas.francois@centraliens.net>
* NEWS: Add NEWS entries.

View File

@ -175,9 +175,11 @@
the user logged in directly.
</para>
<para>
When <option>-</option> is used, it must be specified as the last
<command>su</command> option.
The other forms (<option>-l</option> and <option>--login</option>)
When <option>-</option> is used, it must be specified before any
<option>username</option>. For portability it is recommended
to use it as last option, before any
<option>username</option>. The other forms
(<option>-l</option> and <option>--login</option>)
do not have this restriction.
</para>
</listitem>