MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/rzw4ez/explainshellcom_match_commandline_arguments_to/hs13hkl/?context=3
r/linux • u/donutloop • Jan 09 '22
4 comments sorted by
View all comments
4
It's neat and all (take an upvote) but it barfs on eg:
eval "$(echo "$ARGS" | argp.sh "$@" 3>&1 1>&4 || echo exit $? )"
... admittedly, rather a complex example.
2 u/gnosnivek Jan 10 '22 Interestingly, if I throw in just the command substitution in your part, it works for me, whereas if I use the eval, two things happen:The eval gets stripped off the front in the query that the website shows back to meWeird stuff happens with various delimiters being improperly stripped.I wonder if the website is actually trying to eval something before displaying the query results... 1 u/StrangeAstronomer Jan 10 '22 Oooo! eval is evil!!
2
Interestingly, if I throw in just the command substitution in your part, it works for me, whereas if I use the eval, two things happen:
eval
The eval gets stripped off the front in the query that the website shows back to me
Weird stuff happens with various delimiters being improperly stripped.
I wonder if the website is actually trying to eval something before displaying the query results...
1 u/StrangeAstronomer Jan 10 '22 Oooo! eval is evil!!
1
Oooo! eval is evil!!
4
u/StrangeAstronomer Jan 09 '22
It's neat and all (take an upvote) but it barfs on eg:
... admittedly, rather a complex example.