-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line break behavior is different from xargs #52
Comments
It is not difficult to fix this issue soon, but it will most likely be resolved with another issue (#24) at the same time. Stay tuned :) (Or, welcome any pull requests.) |
memo $ echo -n "$IFS" | od -tx1c
0000000 20 09 0a 00
\t \n \0
0000004 Not only line breaks, but also space and tab. $ echo -ne "aa\n\n\t \t\n\nbb" | xargs printf "[%s]"
[aa][bb] NUL character causes warning message. $ echo -ne "aa\n\n\t \t\0\n\nbb" | xargs printf "[%s]"
xargs: WARNING: a NUL character occurred in the input. It cannot be passed through in the argument list. Did you mean to use the --null option?
[aa][][bb]%
$ echo $?
0 |
👍 perfect! @greymd |
The text was updated successfully, but these errors were encountered: