On 4/28/20 11:04 PM, Kevin Buckley via blfs-dev wrote:
At present, the Book has this argument to configure--with-passprompt="[sudo] password for %p: " but doesn't explain the "%p", merely saying --with-passprompt: This switch sets the password prompt. which might leave the user wondering what the %p stands for. The attached patch adds an explanation, taken from the sudo man page, as follows: --with-passprompt: This switch sets the password prompt. The %p will be expanded to the name of the user whose password is being requested. Having added that extra explanation though, I found that the text looked a bit "unwieldy", in that the text flows under the argument, and so version 2 of the patch replaces the "standard paragraph text", used for the command explanations, with a <variablelist"> that makes things look a lot tidier, and has the advantage, at least in my rendering, of having the argument in the same font as it appears in the command instructions above the explanation.
Users need to be able to figure some things out for themselves. That's what man pages are for. Perhaps if they look at that, they may discover the other escape sequences that sudo recognizes for the prompt.
-- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
