Pass bash script parameters to sub-process unchanged

Viewed 22584

I want to write a simple bash script that will act as a wrapper for an executable. How do I pass all the parameters that script receives to the executable? I tried

/the/exe $@

but this doesn't work with quoted parameters, eg.

./myscript "one big parameter"

runs

/the/exe one big parameter

which is not the same thing.

2 Answers
Related