Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!cs.utexas.edu!usc!csun!csuna!abcscnge From: abcscnge@csuna.csun.edu (Scott "The Pseudo-Hacker" Neugroschl) Newsgroups: comp.unix.questions Subject: Re: YAPQ (yet another prompt question) Message-ID: <2146@csuna.csun.edu> Date: 22 Aug 89 01:57:09 GMT References: <1356@unhd.unh.UUCP> <2113@infmx.UUCP> <13542@bloom-beacon.MIT.EDU> Reply-To: abcscnge@csuna.csun.edu (Scott Neugroschl) Organization: CSU Northridge Lines: 23 In article <13542@bloom-beacon.MIT.EDU> jik@athena.mit.edu (Jonathan I. Kamens) writes: ]>In article <2113@infmx.UUCP> aland@infmx.UUCP (alan denney) writes: ]=In article <1356@unhd.unh.UUCP> rg@unh.UUCP (Roger Gonzalez) writes: ]=| ]=|Since a child 'csh' is spawned whenever I 'su', I thought it would be ]=|nice to have the prompt reflect the 'su-ed' state. Hence, in .cshrc, I ]=|had: ]=|[problem text deleted] [various flames deleted] Since Roger is obviousely using csh, how about the following alias su '/bin/su \!:* -c "exec csh"' That ought to always force a csh invocation of the su, without the parent sh hanging around... -- Scott "The Pseudo-Hacker" Neugroschl UUCP: ...!sm.unisys.com!csun!csuna.csun.edu!abcscnge -- Beat me, Whip me, make me code in Ada -- Disclaimers? We don't need no stinking disclaimers!!!