cms icon indicating copy to clipboard operation
cms copied to clipboard

Add the shell programming language

Open veluca93 opened this issue 8 years ago • 3 comments

See title. This fixes running cmsMake with bash scripts as generators.


This change is Reviewable

veluca93 avatar May 10 '17 13:05 veluca93

Could you update the documentation and possibly add some tests? See #731 for an example.

lw avatar May 14 '17 10:05 lw

Why SH and not Sh or Shell?

stefano-maggiolo avatar Aug 19 '17 21:08 stefano-maggiolo

I would advise against using /bin/sh as the shell to execute as it may be a different shell on different systems. I think the decision on what to do with /bin/sh is up to the single OSes or Linux distros.

On Debian and Ubuntu /bin/sh is a symbolic link to dash, but previously it was bash. On Mac OS X it's bash (precisely bash v. 3.X, which is the default that ships with OS X).

It would be better using a more specific shell and also indicate the version, as for example Bash 4.0 introduced support for associative arrays.

CristianCantoro avatar Sep 15 '17 10:09 CristianCantoro