Computing.Net > Forums > Unix > ste prompt in sh

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.

ste prompt in sh

Reply to Message Icon

Name: yls177
Date: December 18, 2002 at 21:42:43 Pacific
OS: solaris
CPU/Ram: sparc
Comment:

hi, my login shell is sh. but i cant set my prompt to my current working directory. i have set this in my .profile. it is as follows : PS1="yls / "`hostname`:`whoami`'$PWD'">";export PS1

what is wrong



Sponsored Link
Ads by Google

Response Number 1
Name: Frank
Date: December 20, 2002 at 02:33:51 Pacific
Reply:

Make sure that the commands "whoami" and "hosntame" are set in the path before you set the PS1 variable.

Regards Frank


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: ste prompt in sh

How to use substr function in sh www.computing.net/answers/unix/how-to-use-substr-function-in-sh/6654.html

Time monitored Input prompts in script. www.computing.net/answers/unix/time-monitored-input-prompts-in-script/3490.html

my script doesnt work in sh, why_! www.computing.net/answers/unix/my-script-doesnt-work-in-sh-why/5993.html