help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] why bash shows the same error for both too many arguments or


From: Peng Yu
Subject: [Help-bash] why bash shows the same error for both too many arguments or an argument that is too long?
Date: Fri, 28 Oct 2016 15:22:45 -0500

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


-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]