Content deleted Content added
SJ Defender (talk | contribs) m Disambiguated: Bash → Bash (Unix shell) using Dab solver |
|||
Line 4:
===C===
{{Main|C_syntax#Command-line_arguments}}
C uses <code>argv</code> to process command-line arguments.<ref>{{cite web|url=http://publications.gbdirect.co.uk/c_book/chapter10/arguments_to_main.html |title=The C Book — Arguments to main |publisher=Publications.gbdirect.co.uk |date= |accessdate=2010-05-31}}</ref><ref>[http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/share/misc/style An example of parsing C arguments and options]</ref>
An example of [[C (programming language)|C]] argument parsing would be:
Line 30:
===Bash===
[[Bash (Unix shell)|Bash]] uses <code>$1 $2 ..</code>. ($0 is the script filename).
<source lang="bash">
|