From owner-freebsd-questions Sat Aug 22 21:36:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA25583 for freebsd-questions-outgoing; Sat, 22 Aug 1998 21:36:46 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA25561 for ; Sat, 22 Aug 1998 21:36:31 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id VAA13016; Sat, 22 Aug 1998 21:34:39 -0700 (PDT) (envelope-from dhw) Date: Sat, 22 Aug 1998 21:34:39 -0700 (PDT) From: David Wolfskill Message-Id: <199808230434.VAA13016@pau-amma.whistle.com> To: lh@aus.org, questions@FreeBSD.ORG Subject: Re: exec exiting su In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >Date: Sat, 22 Aug 1998 23:23:26 -0400 (EDT) >From: Luke >Hi I was just chatting on irc and someone was complaining about their 'su' >ending whenever they used 'exec'. I went and tried it in csh/tcsh/sh/bash >and it happened to me as well, no matter what if I was su'd and did 'exec > it exec'd it and exited to the previous shell. Is there a reason for >that or is it just an oddity? Behavior of "exec" was just discussed on the list (yes, I note that you said you weren't on the list; please see the archives). Basically, "exec" *replaces* the program that invoked it. david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message