Re: Hi how to escaping under ` ` in sh

2010-04-21 Thread Wes Garland
Try `mysql -u root -pmy\\\$qlPW -N -B -e 'show databases'` I think that's right. Escape the $ so it doesn't get processed by the current shell, escape the slash so it doesn't get processed, falls to \$ which then re-escapes the $ for passing into mysql as part of your password. Nick is on to som

Re: dash-as-bin-sh

2010-04-21 Thread Wes Garland
Hi, Chris! On Wed, Apr 21, 2010 at 4:55 AM, Chris Davies wrote: > If you write your script portably it will work with /bin/sh, for many > values of sh. If you rely on features of ksh or bash you should specify > one of those shells on the #! line. > Of course, you're right about portability -- I

Re: dash-as-bin-sh

2010-04-20 Thread Wes Garland
Hi, Boyd! On Tue, Apr 20, 2010 at 11:18 AM, Boyd Stephen Smith Jr. < b...@iguanasuicide.net> wrote: > > Not portably. It might be possible by parsing ($SHELL -V -c 'exit 123') or > ($SHELL --version -c 'exit 123'). > Say, that's a clever approach, thanks for suggesting it. Sorry, I don't even

dash-as-bin-sh

2010-04-20 Thread Wes Garland
Hi, List! I have a few simple questions for you: 1 - I there a better place to get help with dash 2 - Is there way to detect that a script is running as dash, instead of a shell like Solaris' /bin/sh 3 - Corollary to #2, can I expect dash-as-sh to by a hard link or a sym link? (I would think no