Passing shell script arguments to a subprocess

Passing shell script arguments to a subprocess

瀏覽:340
日期:2024-05-12
So I want to create a shell script that ultimately exec's a command, after doing something like, say, setting an environment variable first: #!/bin/sh export MY_VAR=MY_VAL exec my_command $* (The point of using `exec my_command` rather than plain `my ......看更多