From owner-freebsd-questions Wed Jan 2 8:11: 3 2002 Delivered-To: freebsd-questions@freebsd.org Received: from yuha.menta.net (yuha.menta.net [212.78.128.42]) by hub.freebsd.org (Postfix) with ESMTP id 16AA537B419 for ; Wed, 2 Jan 2002 08:10:57 -0800 (PST) Received: from gibson.menta.net ([212.78.128.22]) by yuha.menta.net (Netscape Messaging Server 4.15) with ESMTP id GPBJQC03.DPY for ; Wed, 2 Jan 2002 17:13:24 +0100 Received: from klamath.local ([62.57.120.44]) by gibson.menta.net (Netscape Messaging Server 4.15) with ESMTP id GPBJFJ01.FPC for ; Wed, 2 Jan 2002 17:06:55 +0100 Received: (from juli@localhost) by klamath.local (8.11.6/8.11.6) id g02GBmP52270 for freebsd-questions@FreeBSD.ORG; Wed, 2 Jan 2002 17:11:48 +0100 (CET) (envelope-from juli) Date: Wed, 2 Jan 2002 17:11:48 +0100 From: Julio Merino To: freebsd-questions@FreeBSD.ORG Subject: Re: Some /bin/sh questions Message-ID: <20020102171148.A45897@klamath.local> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <20020102170108.B1157@klamath.local> <200201021604.g02G4j560286@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201021604.g02G4j560286@lurza.secnetix.de>; from olli@secnetix.de on Wed, Jan 02, 2002 at 05:04:45PM +0100 X-Operating-System: FreeBSD klamath.local 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 02, 2002 at 05:04:45PM +0100, Oliver Fromme wrote: > Julio Merino wrote: > > First, how can I add the current working directory in the PS1? >=20 > export PATH=3D$PATH:. >=20 > However, you should be aware of the security implications. > It's usually better not to do that. No, no, no... PS1, not PATH. I know that about PATH, and I don't want it. What I would like is sh to show the current working directory in the prompt line... So, I do this in zsh: export PS1=3D"%w%# " And I get this as my command prompt: /tmp# Is this possible with sh? Thanks --=20 La ignorancia es la felicidad. Julio Merino (Slink) --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE8MzFDzz00ZOPKycwRAit1AKCisd8qvgpp8ItyRfC2EXTBnkH5uACfe0y1 AFO/LB+ZYrpHHxDV2E719qI= =HzO0 -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message