Re: Bash 2.00 error in xterm
> I use startx to launch my xserver. A default xterm comes up with no
> error. However when I start a new xterm from the window manager, I get
> the following error:
>
> bash: /home/havenerk/.bashrc: line2: unexpected EOF while looking for
> matching `''
> bash: /home/havenerk/.bashrc: line3: syntax error: unexpected end of
> file bash-2.00
>
> here is my .bashrc:
> # ~/.bashrc: executed by bash(1) for non-login shells
> PS1=\u\'@'\h\n\w
>
> Question 1: since this used to work under bash 1.14, I presume it's
> related to bash 2.00's posix compliance, but what 2.00 convention have I
> broke? Where should I put the matching `'' to get the same functionality
> as before?
Well, I seriously doubt if this worked under bash 1.14: you're messing
up the quotes. Eighter you want:
PS1="\u\'@'\h\n\w"
or you want
PS1='\u\@\h\n\w'
(I guess the latter). What you've got now is simply a unfished string.
> Question 2: Why doesn't the error occur in the default xterm. After all
> that isn't a login shell...is it?
Login shells parse ~/.bash_login, non-login shells (in xterm) parse
~/.bash_rc.
--
joost witteveen, joostje@debian.org
#!/usr/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
#what's this? see http://www.dcs.ex.ac.uk/~aba/rsa/
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: