Answer the question
In order to leave comments, you need to log in
How to properly parse a bash command?
There is a command:
ls -l -a && less build.sh
Command - comes first
The value of the command comes immediately after the command (if any)
Options - comes with a '-' or '--' prefix, follows the command
Need to build a tree calls like:
ls
- - l
- - a
less
- build.sh
Now there is an algorithm that builds a similar tree in splits and cycles.
The crux of the matter, what pitfalls can be encountered?
Is there a document showing the hierarchy (priority) of command execution, like in java for example ?
Answer the question
In order to leave comments, you need to log in
There is a command:
ls -l -a && less build.sh
Command - comes first
The value of the command comes immediately after the command (if any)
Options - comes with a '-' or '--' prefix, follows the command
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question