[PATCH util-modular 2/4] release.sh: move the bit to extract the section into a function
Gaetan Nadon
memsize at videotron.ca
Fri May 30 08:17:25 PDT 2014
On 14-05-29 06:24 PM, Peter Hutterer wrote:
> I was wondering about that, but at least bash --posix was happy with it and
> I'm struggling how to test pure Bourne shell compatibility.
I used http://www.hoomanb.com/cs/QuickRef/bash_ref.pdf when working on
build.sh. I got feedback from people running on old systems so it has
been working for me.
> I'd give a
> big +1 for requiring bash for these scripts.
> This isn't some super-portable script that needs to run on everything, it's
> a script that is manually run by a maintainer. And I rather pity the
> maintainer that can't install a proper shell.
I agree (this is not the build.sh script), so as long as the shell
requirement is updated in the comment such that anyone maintaining this
script knows what it is. I suppose it should also be #!/bin/bash.
Perhaps being posix would be a good choice. I am really not an expert in
shell script.
More information about the xorg-devel
mailing list