Search Results

Search: Posts Made By: skippyV
3,007
Posted By skippyV
I never said the input starts out as an array or...
I never said the input starts out as an array or an array of 3 things. I said it is a list which I could place into a variable. And the list contains quoted strings containing white space.
I have...
3,007
Posted By skippyV
Thanks for the error posted previously. Was...
Thanks for the error posted previously. Was rushed.
Here's 2 scripts. I'm certain my array use is correct.
proofTstA.sh
#!/bin/bash -e
listOfParms=$(echo ONE TWO \"TH REE\")
echo PARMS:...
3,007
Posted By skippyV
:b: Much thanks, Corona. Eval did the trick. I...
:b: Much thanks, Corona. Eval did the trick.
I can reformat the input before passing it to script B. But once the input is in a variable and passing the variable to script B - the elements get split...
3,007
Posted By skippyV
Once again I've somehow failed to clarify the...
Once again I've somehow failed to clarify the gist of my question. Apologies, and thanks for responding.
Script B, which splits the arguments as desired, is not the problem. It uses "$@" but just...
3,007
Posted By skippyV
bash, command line substitution
I have one script calling another with a set of strings that includes white space. Script A calls Script B with these input strings: one two "th ree"

Script B pulls apart the arguments...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 04:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy