Don Harrop wrote: > > Damn, I hate syntax! ;-) That's what I get for playing with Linux boxes > that have always set stuff up like that for me.. I've got a couple other > questions that might be pretty easy too.. Basically what I want to do is > create a prompt that displays the username@hostname:pathname like you get > in most Linux installs. With that last tid-bit I can set the prompt to > print everything I want until I su. The username doesn't follow the user. > I'm setting USER=`whoami` and using $USER in PS1 to get the username. > I've also used `whoami` directly in the PS1 var. No luck. Is that > because the su program on HP-UX isn't designed to update any env vars? > I'm setting all this up in the global config files so whoever I log in as > gets this setup but as soon as you su to anyone else it seems like it > looses the environment variable info. Also when telneting in I have to > use ctrl H to backspace. I've set ERASE='^H' and that doesn't seem to > help. Do I have to use the escape code? The environment is HP-UX 10.20 > and I'm running a standard POSIX shell. Linux does exactly that too, doesnt it? The only way to prevent that I know of is to alias the command: alias su='su -p' (see the su manpage for more details) -- jkenner @ mindspring . com__ I Support Linux: _> _ _ |_ _ _ _| Working Together To <__(_||_)| )| `(_|(_)(_| To Build A Better Future. |