The following process results in different behavior in Mac OS and Ubutu:
cat some_text_file | xargs a_shell_script.sh
a_shell_script.sh
#!/bin/bash
echo "$@" | telnet 127.0.0.1 123
exit 0
The TCP server listening on port 123 is scripted to process the contents of some_text_file. On my Ubuntu implementation of this process the length of input that the TCP server receives is the length of the some_text_file. On my OSX implementation however - it is a smaller fraction of the length ie. the input gets truncated somehow.
Note: This is not an xargs issue as far as I can tell. The number of args ($#) available to a_shell_script.sh is equal in both implementation.
Thank you!
