From owner-freebsd-questions Mon Aug 25 00:38:34 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id AAA26289 for questions-outgoing; Mon, 25 Aug 1997 00:38:34 -0700 (PDT) Received: from axl.iafrica.com (root@axl.iafrica.com [196.31.1.167]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id AAA26282 for ; Mon, 25 Aug 1997 00:38:30 -0700 (PDT) Received: from axl.iafrica.com (sheldonh@localhost [127.0.0.1]) by axl.iafrica.com (8.8.7/8.8.7) with ESMTP id JAA04927 for ; Mon, 25 Aug 1997 09:38:26 +0200 (SAT) X-Mailer: exmh version 2.0zeta 7/24/97 From: Sheldon Hearn To: freebsd-questions@freebsd.org Subject: su and PS1 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 25 Aug 1997 09:38:26 +0200 Message-ID: <4923.872494706@axl.iafrica.com> Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This is from su(1) under 2.2-STABLE : | By default (unless the prompt is reset by a startup file) the super-user | prompt is set to ``#'' to remind one of its awesome power. The su program doesn't actually appear to do this. Even if su is run with -l (emulate full login) PS1 is only affected by .profile commands, not by su itself. Is the man page wrong / out of date or is su simply not doing what it's supposed to with the command prompt? Or have I misunderstood how the command prompt is manipulated (some way other than with PS1)? Regards, Sheldon. -- Sheldon Hearn http://axl.iafrica.com/ Training Officer +27-21-658-8515 UUNET Internet Africa http://iafrica.com/iafrica/ National Dial Support Centre +27-21-658-8500