On 11/2/20 10:29 AM, Serj Kalichev wrote:
> Hi
> I can't understand the question.
> If you mean command with unknown number of the parameters with the same
> type - it's not possible now.
> If you mean interactive script then you can write any script you like.
> If you mean command with set of parameters with visibility depend on
> condition see "test" field.
This is somewhat related to the fact that most POSIX shells do not have
array support and need special support for "magic" expansions like "$@"
with double quotes.
I have been doing some heavy sh/bash programming recently...
== Greenspun's tenth rule of programming
This goes well with an argument that I made earlier:
It's always a bit dangerous to extend a "simple tool" into a programming
language. You end up with a solution that often has some details missing.
What I'm saying is also called "Greenspun's tenth rule":
"Any sufficiently complicated C or Fortran program contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Common
Lisp."