Quote:
Originally Posted by grail
I am not sure I understand the issue? How is the output you have shown wrong or could you maybe show what you are expecting?
|
My point was that, though the variable $brn contained a string that supplied everything that ls needed to list the files correctly, doing
produced output that revealed ls to be ignoring the "s that enclosed each path and was breaking them up on every included space. Whereas, if I simply pasted the content of $brn after typing ls in a terminal, it performed as expected.
I've so far not been able to figure out a reliable rule to predict how bash will deliver the content of a variable. Mostly, it does as expected, sometimes, like this example, it doesn't. But it does seem to be generally true that if such content is not delivered as expected, then eval will fix it for you.