[flac-dev] Switching all tests to bash

Brian Willoughby brianw at sounds.wa.com
Sun Sep 15 17:41:57 PDT 2013

On Sep 15, 2013, at 15:25, Erik de Castro Lopo wrote:
> I'm thingking og switching all the test scripts to use /bin/bash  
> instead
> of /bin/sh. The main reason is that /bin/sh on linux can mean one of
> two things; bash in bourne shell comatibility mode or dash. These two
> behave differently enough to make it a pain to be always testing them.
> The other issue is that using some bash features will allow me to  
> reuse
> code and reduce the amount of shell script that needs to be  
> mainatained.
> Does anyone see any major problems with this?

I will admit that I'm very focused on Mac OS X, including older  
versions back to Tiger, 10.4
Along those lines, though, OSX not only includes bash, but uses it by  
default. Therefore, you'll hear no complaints from me for requiring  
bash instead of sh.

I suppose if there are other operating systems that somehow don't  
have bash, but already support flac, then someone should speak up. I  
wouldn't want to see support for flac dropped on a platform that is  
still reasonably viable. Even in that case, though, I suppose sh  
could be a fallback if bash is unavailable.


More information about the flac-dev mailing list