Anonymous user
Category talk:UNIX Shell: Difference between revisions
→When it works with Bourne Shell: new section
(<lang bash> or <lang sh>?) |
(→When it works with Bourne Shell: new section) |
||
Line 14:
==<lang bash> versus <lang sh>==
I use <lang bash> for all Bourne-compatible examples, including [[pdksh]] and plain [[Bourne Shell]] code. Some other contributors use <lang sh>. Which is better, <lang bash> or <lang sh>? I prefer <lang bash>, 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)
|