Often, answers to questions asking for "programs" or talking about "programming languages" utilize things like sed
, awk
, … in order to get around having to write an actual shell script.
Therefore, a question comes to my mind:
What qualifies as a programming language?
Sure, ultimately the OP can define this themselves. But what is a reasonable understanding of a "default" in case the question does not clarify this (and how should it be clarified)?
Do coreutils count as "languages" and if so, how to handle different sets of coreutils on different systems?
To give a concrete example for a questionable usage of the term programming language, see my answer here. It uses a rot13
binary as the interpreter. In case this is invalid, but "coreutils" are valid, how can we define the difference?
sed
/awk
case androt13
is that the former two take some file specifying a transformation (sed does so via the-f
parameter) whereas rot13 does not. Or is rot13 specified to ignore any excess arguments? In that case, an empty file could be considered a "rot13 program" if one wants to bend the rules. \$\endgroup\$awk …
), when, to be fair, only the argument containing the logic should count. \$\endgroup\$sed
is a programming language and it's great for string manipulation golfing, codegolf.stackexchange.com/a/28655/16402 and codegolf.stackexchange.com/a/32526/16402 \$\endgroup\$