On Thu, May 10, 2012 at 5:46 AM, ольга крыжановская <[email protected]> wrote: > On Thu, May 10, 2012 at 5:36 AM, Clark WANG <[email protected]> wrote: >> On Wed, Apr 18, 2012 at 2:27 AM, David Korn <[email protected]> wrote: >>> >>> cc: [email protected] >>> Subject: Re: [ast-users] [ksh93] Any way to get the full file name of >>> current running ksh? >>> -------- >>> > >>> > Bash has a $BASH var for this purpose so I can define following alias to >>> > reload the rc files without exiting and restarting the shell: >>> > >>> > alias rr='echo "+++ Restarting $BASH ..."; exec $BASH' >>> > >>> > (attachment 1 7/299 text/html "1.att") >>> > >>> >>> It will exit and restart bash, using the same process id. >>> >>> I am not sure that it is possible to get the pathname for the >>> current process on all systems. >> >> >> It makes sense for ksh to know "Who am I", just like $BASH for bash and >> $(MAKE) for make. Is it possible to add this? > > Does .sh.interpreter sound good as name?
Grumpf... is there really no (semi-)portable way to do this without adding more stuff in this area ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [email protected] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
