Code Golf: Code Golf: Difference between revisions
Content added Content deleted
MikarGibbros (talk | contribs) (added sh) |
MikarGibbros (talk | contribs) m (sh -> UNIX_Shell) |
||
Line 480: | Line 480: | ||
Note: Run BASIC is an interpreter, it does not generate executables. |
Note: Run BASIC is an interpreter, it does not generate executables. |
||
=={{header| |
=={{header|UNIX_Shell}}== |
||
{{works with|bash}} |
{{works with|bash}} |
||
The executable source code is 14 bytes by using script name instead of character literals: |
The directly executable source code is 14 bytes by using its script name instead of character literals: |
||
<syntaxhighlight lang="sh">echo -n ${0:2}</syntaxhighlight> |
<syntaxhighlight lang="sh">echo -n ${0:2}</syntaxhighlight> |
||
To run: |
To run: |