ctubbsii commented on PR #5158:
URL: https://github.com/apache/accumulo/pull/5158#issuecomment-2529804277

   For additional background, the reason why eval was being used at all was 
because setting a variable for a specific execution of a command does not work 
when calling it directly, as in:
   
   ```bash
   debug() { "$@"; }
   debug SOMETHING=foo env | grep SOMETHING # causes error - bash: 
SOMETHING=foo: command not found
   SOMETHING=foo env | grep SOMETHING # this works fine
   debug2() { eval "$@"; }
   debug2 SOMETHING=foo env | grep SOMETHING # this works, but requires nested 
quoting of arguments
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to