QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Passing arguments to a shell script |
Ref. No. |
QNX.000009711 |
Category(ies) |
Utilities, Filesystem |
Issue |
How can we pass arguments to a shell script which will be started as ". script arg1 arg2 ..."?
|
Solution |
It's not possible to pass arguments to a shell script started this way. Arguments are passed as the argv and argc for new processes. But, doing ". script" explicitly does not start a new process, but instead interprets the specified script in the context of the current shell. |
|