<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body text="#000000" bgcolor="#ffffff">
Pardon me for the Linux-newbie question, but:<br>
what does "/usr/bin/env" do if you don't give<br>
it any options? The man page sort of makes it<br>
look like a no-op if you don't say -i or NAME=VALUE.<br>
Thanks.<br>
-- Dan<br>
<br>
Tim Bradshaw wrote:
<blockquote type="cite" cite="mid:E1F8C6AF-F65C-43D6-A147-20C52EFF492B@tfeb.org">
<pre wrap="">On 10 Oct 2009, at 17:45, Waldek Hebisch wrote:
</pre>
<blockquote type="cite">
<pre wrap="">AFAICS on Solaris correct fix is to replace '/bin/sh' by
'/bin/posix/sh'.
</pre>
</blockquote>
<pre wrap=""><!---->
If we assume that all systems have a decent ksh or bash somewhere in
the path, then the best approach is generally to have the ban line be
#!/usr/bin/env bash
Which will find the appropriate shell (use ksh if preferred).
It certainly is the case that Solaris's /bin/sh is a non-Posix shell
(in other words, it's actually the Bourne shell rather than some
remote souped-up descendent of it): I think they're pretty wary of
changing it and causing a huge number of poorly-written customer
scripts to break.
--tim
_______________________________________________
Openmcl-devel mailing list
<a href="mailto:Openmcl-devel@clozure.com" class="moz-txt-link-abbreviated">Openmcl-devel@clozure.com</a>
<a href="http://clozure.com/mailman/listinfo/openmcl-devel" class="moz-txt-link-freetext">http://clozure.com/mailman/listinfo/openmcl-devel</a>
</pre>
</blockquote>
</body>
</html>