Such a wrapper script should call the command with exec function.
Otherwise, extra process will be created, and the script will not pass the stdin to the sub process. (see man execv) Also, $@ variable should be used with double quotes when you want to pass the parameters as is.
Showing
Please register or sign in to comment