Answer the question
In order to leave comments, you need to log in
How to pass all parameters in BASH to an internal call?
Hello. The point is the following.
I have a file ./start.sh
that conditionally serves to make it easier to run a longer command
/usr/local/lib/path/to/lib/bin /home/user/path/to/some/file
. So. There was a need to pass several parameters to the internal call. ./start.sh --max=100
/usr/local/lib/path/to/lib/bin /home/user/path/to/some/file --max=100
Answer the question
In order to leave comments, you need to log in
Pass as "$*" or "[email protected]"
./start.sh
/usr/local/lib/path/to/lib/bin /home/user/path/to/some/file [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question