Peng Yu
2016-10-28 20:22:45 UTC
Hi,
The following two commands show the same error message. But for the
first command, there is only one argument. Is there error message
incorrect? Also, why bash fails for the first case. Is there any
restriction on the length of a single argument?
~$ "$(type -P echo)" "$(seq 100000)"
-bash: /usr/local/opt/coreutils/libexec/gnubin/echo: Argument list too long
~$ "$(type -P echo)" $(seq 100000)
-bash: /usr/local/opt/coreutils/libexec/gnubin/echo: Argument list too long
The following two commands show the same error message. But for the
first command, there is only one argument. Is there error message
incorrect? Also, why bash fails for the first case. Is there any
restriction on the length of a single argument?
~$ "$(type -P echo)" "$(seq 100000)"
-bash: /usr/local/opt/coreutils/libexec/gnubin/echo: Argument list too long
~$ "$(type -P echo)" $(seq 100000)
-bash: /usr/local/opt/coreutils/libexec/gnubin/echo: Argument list too long
--
Regards,
Peng
Regards,
Peng