Computing.Net > Forums > Unix > PSI variable

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PSI variable

Reply to Message Icon

Name: sue
Date: January 12, 2003 at 03:11:33 Pacific
OS: Sun Solaris
CPU/Ram: P4/2GB
Comment:

I have this PS1='$PWD$' in my korn shell script
Can you tell me what will that do?? is it something to do with my command prompt.

Many Thanks!!!



Sponsored Link
Ads by Google

Response Number 1
Name: James Boothe
Date: January 12, 2003 at 09:08:14 Pacific
Reply:

Yes, PS1 defines your primary prompt string, which can be a simple string such as '$ ' or for ksh it can be an expression, such as your present working directory.

PS2 is your secondary prompt string when it knows it needs to prompt for more:

PS2='more please: '
print "This is a
continued line"

PS2='> ' # back to default


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: PSI variable

Variables in Shell SCripting www.computing.net/answers/unix/variables-in-shell-scripting/6020.html

export variables www.computing.net/answers/unix/export-variables/4268.html

variables www.computing.net/answers/unix/variables/3926.html