From owner-freebsd-doc Thu Mar 1 12: 4:15 2001 Delivered-To: freebsd-doc@freebsd.org Received: from cfcl.com (cpe-24-221-169-54.ca.sprintbbd.net [24.221.169.54]) by hub.freebsd.org (Postfix) with ESMTP id 71FBD37B71C for ; Thu, 1 Mar 2001 12:04:09 -0800 (PST) (envelope-from rdm@cfcl.com) Received: from [192.168.168.205] (cerberus [192.168.168.205]) by cfcl.com (8.11.1/8.11.1) with ESMTP id f21K58R14543 for ; Thu, 1 Mar 2001 12:05:09 -0800 (PST) (envelope-from rdm@cfcl.com) Mime-Version: 1.0 Message-Id: In-Reply-To: <200103011110.f21BA3c63369@freefall.freebsd.org> References: <200103011110.f21BA3c63369@freefall.freebsd.org> Date: Thu, 1 Mar 2001 12:00:49 -0800 To: freebsd-doc@FreeBSD.ORG From: Rich Morin Subject: Re: docs/25405: misleading warning from catman(1), etc. Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org At 3:10 AM -0800 3/1/01, Ben Smithurst wrote: > RTFM... That's not what you're doing, you're passing the text string > into 'su', which simply runs a shell as user 'man' which then executes > the command /usr/bin/catman as that user. Well, I actually did RTFM, but I saw nothing that seemed to describe the behavior I encountered. Certainly, the su(1) man page says nothing about taking input from standard input. It does say "A shell is then executed.", so perhaps I should have figured it out by considering the behavior of sh: echo ls | sh This calls for a bit more reading between the lines than I would wish, however; perhaps some explanation and an example might be in order. -r -- -- http://www.cfcl.com/rdm email: rdm@cfcl.com phone: +1 650-873-7841 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message