On 2016 Nov 10 , at 1:20 a, Bernd Steinhauser <linux@xxxxxxxxxxxxxxxxxxxx> wrote:
Hi,
I'm using a program that expects a parameter (actually multiple parameters) in the form
program "foo='bar'"
Because the cmdline for that program gets quite long, I wrote a function to call it and change parameters easily,it looks roughly like this:
progfunc() {
CORES=12
program -n ${CORES} "foo='bar'" foo2="1 $3"
}
What I would want to do is to ensure that if I call
`progfunc x`
this would translate into "foo='x'", without touching the rest of the call.
Is that somehow possible?
iirc, variables won't work, because of the quoting style?
Best Regards,
Bernd