[techtalk] BASH programming...

Beverly Guillermo mezanin at home.com
Thu Apr 20 09:24:30 EST 2000


On Thu, 20 Apr 2000, J Grant Boling wrote:

> I took line 8 straight from a HOWTO on Shell Prompt Programming, and 
> modified it slightly so that it left just the tty? part,  it works fine
> from the command prompt but when I go to login with the new /etc/profile
> it tells me I'm missing a trailing ' " '  ...  Any help would be greatly
> appreciated!
> ~~~
> # /etc/profile
> 
> # System wide environment and startup programs
> # Functions and aliases go in /etc/bashrc
> 
> PATH="$PATH:/usr/X11R6/bin"
> PS1="[\u@\h \W]\\$ "
> cur_tty=$(tty | sed -e "s/.dev./(/)/\1\")
                                        ^^ 

The \" escapes the trailing quotation.  Remove the \ should 
fix your problem.

Beverly







More information about the Techtalk mailing list