Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Prompt in Korn shell
On a related note, once the PWD's been crammed in there is it possible
to substitute "~" for the home directory (like bash does)? Something
like:
mehoo_at_somewhere[~]$
instead of
mehoo_at_somewhere[/foo/bar/mehoo]$
It looks like ksh93 has some string replacement features which might work... unfortunately I seem to be stuck with ksh88.
> -----Original Message-----
> From: Alex.Hillman [mailto:Alex.Hillman_at_usmint.treas.gov]
> Sent: Wednesday, June 20, 2001 3:26 PM
> To: ORACLE-L
> Subject: Prompt in Korn shell
>
>
> Anybody knows how to show current working directory and in
> general shell
> variable in Korn shell that prompt change when variable changes - for
> current working directory and ORACLE_SID for example. I know
> how to do it in
> bash but cannot do it right in Korn.
>
> Alex Hillman
>
Received on Thu Jun 21 2001 - 11:18:26 CDT