Andre Poenitz <[EMAIL PROTECTED]> writes:

| On Sun, Dec 05, 2004 at 04:32:36PM +0000, Angus Leeming wrote:
>> ksh: ${FOO${BAR}}: bad substitution
>> [EMAIL PROTECTED]:aleem-> sh
>> [EMAIL PROTECTED]:aleem-> BAR=bar
>> [EMAIL PROTECTED]:aleem-> FOObar=woooo
>> [EMAIL PROTECTED]:aleem-> echo ${FOO${BAR}}
>> bad substitution
>> 
>> Sorry. You're out of look. Not portable to Tru64 unix.
>
| Is it possible to install bash on all systems we support?
>
| If so, wouldn't it be simpler to require a working 'bash'
| and drop all these 'portability hacks'?

Depends... remember that even on Linux not everyone uses bash.

${foo/$bar}   is a special kind of Parameter Expansion, other shells
often have someting similar.

but `cat $foo | sed -e "s/$bar//"` should work equally well, (but you
might need to massge the pattern ($bar) a bit more than we do now.

| After all, we require (fairly) Standard C++, too, and do not care
| for each and every broken C++ compiler out there.

I am ambivalent. Since _I_ use bash all the time: no problem for me.
But there are a lot of systems where bash is not the system/preffered
shell.

-- 
        Lgb

Reply via email to