<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 11/17/14 22:18, Jaime wrote:<br>
</div>
<blockquote
cite="mid:CA+dYCimkgCfH1vPZj4j27jW6squFw7j==XQJj5boNDtMCoo+aw@mail.gmail.com"
type="cite">On Monday, November 17, 2014, James L. Lauser <<a
moz-do-not-send="true" href="mailto:james@jlauser.net">james@jlauser.net</a>>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">That assumes you don't do a common Linuxism and
assume that sh is actually bash or something else and write a
script that depends on a feature that's not common to all
sh-like shells.</p>
</blockquote>
<div><br>
</div>
<div>What constitutes a "sh-like shell"?</div>
<div><br>
</div>
<div>Jaime</div>
<br>
</blockquote>
<br>
A Bourne shell (i.e. not a C shell).<br>
POSIX specifies what a shell should do:<br>
<a class="moz-txt-link-freetext" href="http://pubs.opengroup.org/onlinepubs/007904975/utilities/sh.html">http://pubs.opengroup.org/onlinepubs/007904975/utilities/sh.html</a><br>
and<br>
<a class="moz-txt-link-freetext" href="http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html">http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html</a><br>
<br>
Of course, such things are only part of the battle: the other part
is not using non-standard userland utilities or non-standard flags
in your scripts (e.g., did you know that `sed -i` is not part of
POSIX? OpenBSD doesn't implement the -i flag!).<br>
<br>
~Brian<br>
</body>
</html>