Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RSH Prompt 1

Status
Not open for further replies.

smicro

MIS
Dec 26, 2002
281
US
Currently we have for PS1 prompt user@host:currentdirectory
For Rsh users we would like the default $. I was going to put a check in profile but having an issue with the line
if [ $SHELL -eq "/usr/bin/Rsh" ] below(syntax error) I'm probably looking over the obvious. Any help would be great, Thanks.


if [ $SHELL -eq "/usr/bin/Rsh" ]
then
PS1="$ "
export $PS1
else
PS1='{$LOGNAME@$HOSTNAME:$PWD} '
fi
 
And what about this ?
[ $SHELL = '/usr/bin/Rsh' ] && PS1='$ ' || PS1='{$LOGNAME@$HOSTNAME:$PWD} '
export PS1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top