Re: Bash can't find, PS1 and HISTSIZE

1999-11-20 Thread Shaul Karl
 I have freshly installed Slink and put the following lines in my
 ~.bashrc :
 
 case $TERM in
  xterm*)
  PS1 =\[\033]0;[EMAIL PROTECTED]: \w\007\]\w\$ 


Isn't the white space character before the = sign cause bash to interpret PS1 
as a command ?


  ;;
  *)
  PS1 =\w\$ 
  ;;
 esac
 
 
 HISTSIZE =1000
 _
 
 I get the following error when I open an xterm,
 
 bash: PS1: command not found
 bash: HISTSIZE: command not found
 bash-2.01$ 
 
 I don't understand this.  Both commands worked in my last Slink system. 
 I checked the list archives and didn't find anything.  Anyone know how
 to fix this?
 Thanks,
 kent
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 



Bash can't find, PS1 and HISTSIZE

1999-11-19 Thread ktb
I have freshly installed Slink and put the following lines in my
~.bashrc :

case $TERM in
 xterm*)
 PS1 =\[\033]0;[EMAIL PROTECTED]: \w\007\]\w\$ 
 ;;
 *)
 PS1 =\w\$ 
 ;;
esac


HISTSIZE =1000
_

I get the following error when I open an xterm,

bash: PS1: command not found
bash: HISTSIZE: command not found
bash-2.01$ 

I don't understand this.  Both commands worked in my last Slink system. 
I checked the list archives and didn't find anything.  Anyone know how
to fix this?
Thanks,
kent


Re: Bash can't find, PS1 and HISTSIZE

1999-11-19 Thread Ethan Benson

On 18/11/99 ktb wrote:



case $TERM in
xterm*)
PS1 =\[\033]0;[EMAIL PROTECTED]: \w\007\]\w\$ 
;;
*)
PS1 =\w\$ 
;;
esac


HISTSIZE =1000
_

I get the following error when I open an xterm,

bash: PS1: command not found
bash: HISTSIZE: command not found
bash-2.01$

I don't understand this.  Both commands worked in my last Slink system.
I checked the list archives and didn't find anything.  Anyone know how
to fix this?


yes try deleting the spaces after PS1 and HISTSIZE.

try this:

case $TERM in
 xterm*)
 export PS1=\[\033]0;[EMAIL PROTECTED]: \w\007\]\w\$ 
 ;;
 *)
 export PS1=\w\$ 
 ;;
esac


export HISTSIZE=1000
_

you should be able to export them all at once by adding a line:

export PS1 HISTSIZE to the bottom of the .bashrc instead of exporting 
each one individually, but it really does not matter which way you 
export them just so you do.




Best Regards,
Ethan Benson
To obtain my PGP key: http://www.alaska.net/~erbenson/pgp/


RE: Bash can't find, PS1 and HISTSIZE

1999-11-19 Thread Pollywog

On 19-Nov-1999 ktb wrote:
 I have freshly installed Slink and put the following lines in my
 ~.bashrc :
 
 case $TERM in
  xterm*)
  PS1 =\[\033]0;[EMAIL PROTECTED]: \w\007\]\w\$ 
  ;;
  *)
  PS1 =\w\$ 
  ;;
 esac
 
 
 HISTSIZE =1000

What if you add to the end of this file

export HISTSIZE PS1

?


--
Andrew