On Fri, 5 Jul 2002, Rob Fegley wrote: > I've tried about fifteen ways to get the prompt to look like this: > > [root@firewall /usr/sbin]# <--- where "/usr/sbin" is a current working directory > > to no avail. The best I ever get is "/root", which was the value of $PWD (or output >of `pwd`) at the time that the PS1 was exported. The following line is what I want: > > echo -n -e "\n[$USER@$HOSTNAME `/bin/pwd`]# " > > At least, it works from the shell, just not within the construct of an exported >variable. The embedded command always gets parsed upon export of the variable rather >than when the variable is called. Any thoughts? If not, has anyone compiled a bash >package for Bering or another LEAF variant? Thanks, again!
I guess there is no way to do that with ash shell. In bash, you need to do: PS1='[\u@\h \w]\$' However bash is probably too BIG for a floppy. You can look for an ancient version of bash and compile yourself, but IMO it doesn't worth it. -- Julio César Gázquez Area Redes, Informatica y Comunicaciones UTN - Facultad Regional Rosario http://www.frro.utn.edu.ar ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Bringing you mounds of caffeinated joy. http://thinkgeek.com/sf ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html