Hi Thorsten,

I made the decision to write all the build system in bash (not in shell, in bash), because bash is portable, ubiquitous, and because it's time-consuming to test compatibility with all shells.
(Credits to GNU Arch for the idea.)

There was a lengthy hunt for "bashisms" in /etc/init.d/ when Debian attempted to reduce its boot time (during the pre-systemd era), but here the optimization would be negligible. So I gladly use bash-specific extensions.

Cheers!
Sylvain

Le 19/10/2015 14:19, Thorsten Glaser a écrit :
On Fri, 16 Oct 2015, Sylvain Beucler wrote:

-#! /bin/sh
+#!/bin/bash
Why?

+source $(forge_get_config source_path)/post-install.d/common/service.inc
In shell, you do “.” instead of “source” which is a bashism.
It’s the same except the cwd is not searched if the path does
not contain a slash (not in this case).

bye,
//mirabilos

_______________________________________________
Fusionforge-general mailing list
Fusionforge-general@lists.fusionforge.org
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-general

Reply via email to