On Mon, Dec 06, 2004 at 10:08:08AM +0100, Lars Gullik Bjønnes wrote: > | 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.
That's fine as long as configure we can find one on the system. The average Linux comes with a dozen shells preinstalled and I don't know a single system without a bash, even if that's not some user's preference. > ${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. But this is neither efficient nor readable. > | 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. Being installed would be enough, wouldn't it? Andre'