Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Prompt in Korn shell

RE: Prompt in Korn shell

From: <gregory.t.norris_at_mail.sprint.com>
Date: Thu, 21 Jun 2001 09:08:50 -0700
Message-ID: <F001.003320EF.20010621083644@fatcity.com>


You can embed an actual newline in the assignment, as long as it's between quotes. For example:

PS1='part1
part2'

> -----Original Message-----
> From: Alex.Hillman [mailto:Alex.Hillman_at_usmint.treas.gov]
> Sent: Thursday, June 21, 2001 10:26 AM
> To: ORACLE-L; Alex.Hillman
> Subject: RE: Prompt in Korn shell
>
>
> Now I have another problem.
>
> export PS1='$LOGNAME@$HOST:$PWD:${ORACLE_SID:-ORUNDEF}\n!->'
> - result is:
>
> oracle8i_at_coin-app:/u01/app/psoft/PSTEST/appserv:PSTESTn133->
>
> instead of
>
> oracle8i_at_coin-app:/u01/app/psoft/PSTEST/appserv:PSTEST
> 133->
>
> Looks like it does not understand \n as a new line character.
>
> Any ideas please.
>
> Alex Hillman
>
>
>
> -----Original Message-----
> Sent: Wednesday, June 20, 2001 4:26 PM
> To: Multiple recipients of list ORACLE-L
>
>
> 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
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Hillman, Alex
> INET: Alex.Hillman_at_usmint.treas.gov
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Hillman, Alex
> INET: Alex.Hillman_at_usmint.treas.gov
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
Received on Thu Jun 21 2001 - 11:08:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US