summaryrefslogtreecommitdiffstats
path: root/usr.bin/su
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2011-06-06 19:33:19 +0000
committergjb <gjb@FreeBSD.org>2011-06-06 19:33:19 +0000
commit7089418fe7fe633793ea8078bb498b27e0e563c1 (patch)
tree764d660340aecdf33caed30f172c170f084a2d86 /usr.bin/su
parentb85f2958405471837cf29da0149697935f47e464 (diff)
downloadFreeBSD-src-7089418fe7fe633793ea8078bb498b27e0e563c1.zip
FreeBSD-src-7089418fe7fe633793ea8078bb498b27e0e563c1.tar.gz
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 <user> -c <command>' Submitted by: Warren Block <wblock@wonkity.com> (followup to 157078) MFC after: 5 days
Diffstat (limited to 'usr.bin/su')
-rw-r--r--usr.bin/su/su.16
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/su/su.1 b/usr.bin/su/su.1
index 8025a23..d9180e3 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
OpenPOWER on IntegriCloud