[GRASS-dev] Re: [GRASS-CVS] hamish: grass6/lib/init init.sh, 1.120, 1.121

Hamish hamish_nospam at yahoo.com
Tue Nov 6 17:28:03 EST 2007


Jachym Cepicky wrote:

> BTW: this works better for me:
..
>  echo '          __________  ___   __________    _______________'
>  echo '         / ____/ __ \/   | / ___/ ___/   / ____/  _/ ___/'
> -echo '        / / __/ /_/ / /| | \__ \\__ \   / / __ / / \__ \ '
> +echo '        / / __/ /_/ / /| | \__ \\\\_  \\   / / __ / / \\__ \\ '
>  echo '       / /_/ / _, _/ ___ |___/ /__/ /  / /_/ // / ___/ / '
>  echo '       \____/_/ |_/_/  |_/____/____/   \____/___//____/  '
>  echo


It was my understanding that using 'single quotes' meant that I didn't have to
worry about it being escaped by the shell? The above is shown literally on
Debian/etch.

I think that is a Dash nasty? Surely this is messing up someone's regex scripts
somewhere, and it doesn't smell much like a Bashism.

$ bash  
$ echo '\\'
\\
$ dash
$ echo '\\'
\

Is the practical solution to bypass the issue by using "double quotes" and
explicitly double-\\ any intended \\s?


artistic credit goes to the figlet package - Frank, Ian & Glenn's Letters
    http://www.figlet.org
handy online frontend  http://www.network-science.de/ascii/


Hamish


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the grass-dev mailing list