Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!inria!imag!serge From: serge@imag.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Re: Prompt changing on the fly Message-ID: <1408@imag.UUCP> Date: Mon, 2-Feb-87 12:03:13 EST Article-I.D.: imag.1408 Posted: Mon Feb 2 12:03:13 1987 Date-Received: Sat, 7-Feb-87 05:19:56 EST References: <432@ethz.UUCP> <2935@diku.UUCP> Reply-To: serge@imag.UUCP (Serge ROUVEYROL) Distribution: world Organization: IMAG, University of Grenoble, France Lines: 15 Keywords: prompt Xref: mnetor comp.unix.questions:971 comp.unix.wizards:860 In article <2935@diku.UUCP> storm@diku.UUCP writes: >You cannot use a shell script or a program to change the shell prompt >dynamically, because the PS1/prompt variables are local to the shell, >and therefore they can only be changed by the shell itself. avec la commande chdir : echo directory ? read dir cd $dir && PS1=`pwd`" $ " et l'appel de commande : . chdir -- ================================================================================ serge@imag.UUCP or {seismo.css.gov|mcvax|inria}!imag!serge Rouveyrol Serge,Laboratoire L.G.I,BP 68,38402 St Martin d'Heres CEDEX,FRANCE tel 76 51 46 00 poste 5132