News for hackers. Stuff that matters.
Re:Explain Shell by etrain on Monday December 02, 2013 @02:42PM (#6835982)
Very cool - but support for xargs seems to be broken.

    find . -type f | xargs wc -l
http://explainshell.com/explain?cmd=find+.+-type+f+%7C+xargs...
Re:Explain Shell by un1xl0ser on Monday December 02, 2013 @07:13PM (#6837598)
I would expect xargs to stop processing arguments strictly after the first non-flag argument.

Arguments to xargs do appear to be parsed, example below:

http://explainshell.com/explain?cmd=find+%2F+-type+f+-print0...

Re:Explain Shell by etrain on Thursday December 05, 2013 @05:57PM (#6858018)
Right, but in this example it's not telling me what the "grep" is doing. Admittedly xargs is a weird case where the arguments to the program are invoked as a program, but I'd say it shows pretty frequently in these type of "what does this long freaking command do?" situations. Maybe worth adding a special case for.