Category talk:UNIX Shell: Difference between revisions

(<lang bash> or <lang sh>?)
 
Line 14:
==&lt;lang bash&gt; versus &lt;lang sh&gt;==
I use &lt;lang bash&gt; for all Bourne-compatible examples, including [[pdksh]] and plain [[Bourne Shell]] code. Some other contributors use &lt;lang sh&gt;. Which is better, &lt;lang bash&gt; or &lt;lang sh&gt;? I prefer &lt;lang bash&gt;, because the page at [[Rosetta Code:Village Pump/Syntax Highlighting]] says to use "bash" for "UNIX Shell". --[[User:Kernigh|Kernigh]] 16:09, 22 August 2011 (UTC)
 
== When it works with Bourne Shell ==
 
* ''Do not make [http://rosettacode.org/mw/index.php?title=Loops/Infinite&oldid=114610#UNIX_Shell a long list of Bourne-compatible shells] above each Bourne-compatible solution.'' A single <nowiki>{{works with|Bourne Shell}}</nowiki> is enough. Do not add works with Almquist Shell, works with Korn Shell, works with Bash, ...
* ''Do not post two copies of the same script.'' There should not be [http://rosettacode.org/mw/index.php?title=User_input/Text&oldid=118994#UNIX_Shell an extra copy] that only has #!/bin/bash instead of #!/bin/sh, only because the script also works with Bash.
 
--[[User:Kernigh|Kernigh]] 02:42, 30 August 2011 (UTC)
Anonymous user