[OT] Shell scripting compatibility

Steven Schveighoffer schveiguy at yahoo.com
Mon Jul 6 12:16:29 PDT 2009


On Sat, 04 Jul 2009 16:50:22 -0400, Nick Sabalausky <a at a.a> wrote:

> Can /bin/bash safely be expected to exist on all non-Windows systems that
> can compile D? Or is there something better for that? Any common
> cross-platform-scripting gotcha's to be aware of?

/bin/sh will always exist.  Usually, it is a symlink to bash, but not  
always.  Even if it's not bash, it should generally allow 99% of what you  
want to do with bash.  I wrote shell scripts for busybox's ash (/bin/sh)  
and those scripts ran seamlessly on a full linux system with bash.

-Steve



More information about the Digitalmars-d mailing list