Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That looks like it works until your MANIFEST file ends up with a space character in one of the file names.

For GNU xargs I like adding -d\\n which handles everything except files with an embedded newline. Those are much rarer than files with a space, though.

Sadly, OS X xargs (probably BSD based) doesn't have that option, so I have an alias to do the same thing:

    alias xargsn="tr '\n' '\0' | xargs -0"


Good catch.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: