From owner-freebsd-questions Mon Jul 26 22: 8:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 6019B14FA0 for ; Mon, 26 Jul 1999 22:08:10 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id BAA08473; Tue, 27 Jul 1999 01:06:23 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199907270506.BAA08473@cc942873-a.ewndsr1.nj.home.com> Subject: Re: su segfaults, why? In-Reply-To: <199907270454.AAA08363@cc942873-a.ewndsr1.nj.home.com> from "Crist J. Clark" at "Jul 27, 99 00:54:37 am" To: cjclark@home.com Date: Tue, 27 Jul 1999 01:06:23 -0400 (EDT) Cc: baram@home.com, freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Yeah, yeah, I know a followup to my own message. Sorry.] Crist J. Clark wrote, > [*] The docs on the '-c' switch in the description do not match its > usage in the examples. The switch seems to work like it does in > the examples. I'll file a PR after I check if this has not already > been pointed out. Figured this out. In the examples at the bottom, the '-c' switch is being passed to the shell. The shell then interprets the string following the '-c' as input. The manpage is correct. You have to think carefully about the second, and really the third too, examples at the bottom to figure out what is going on. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message