I have the following scenario.I have a Perl script that takes an ID and looks up some arguments from a DB.lets say look_up_args.pl 234 prints the following abc 123 something with spacesI have another shell script script.sh that does the followingsome_command --param1 $1 --param2 $2 --par3 $3 ...what I am trying to do is to call the script with the argumentsI have tried the following 2 methods    ./script.sh `./look_up_args.pl 234`./script.sh $(./look_up_args.pl 234)still whenever I run the script.sh, $3 seems to contain only  something causing my script to fail. I am looking for away to pass the quoted string with out any form of shell expansion/etc... The third parameter may contain other special bash characters, but will always be quoted.
How to pass arguments to a script that were generated by another script
shell script;perl;arguments;output
I wouldn't recommend this, but try:eval ./script.sh $(./look_up_args.pl 234)This should work, but keep in mind that eval will evaluate whatever look_up_args.pl happens to output, meaning you leave yourself vulnerable to code injection.A better option would be what @thrig suggested in the comments: use a standardized data format to pass data between tools.  Even a newline-delimited string would be a fine format for a shell-style processing pipeline.