From b6654957c3f4c1b493414e6addc8aa7087490b38 Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Mon, 6 Jun 2011 19:33:19 +0000 Subject: [PATCH] Attempt to clear up some confusion in the following example, by stating the '-c' argument is passed to the shell, not to su(1), which would indicate the login class. 'su -m -c ' Submitted by: Warren Block (followup to 157078) MFC after: 5 days --- usr.bin/su/su.1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/su/su.1 b/usr.bin/su/su.1 index 8025a23339cf..d9180e37a0be 100644 --- a/usr.bin/su/su.1 +++ b/usr.bin/su/su.1 @@ -203,6 +203,12 @@ Note that the option is required since user .Dq man does not have a valid shell by default. +In this example, +.Fl c +is passed to the shell of the user +.Dq man , +and is not interpreted as an argument to +.Nm . .It Li "su -m man -c 'catman /usr/share/man /usr/local/man'" Same as above, but the target command consists of more than a single word and hence is quoted for use with the