## per...@pluto.rain.com (per...@pluto.rain.com):

> > I notice "/bin/echo */*/Makefile*" doesn't work.
> 
> The same (builtin echo works, /bin/echo not) happens in /bin/sh,
> and in bash.
> 
> > Is this documented somewhere?
> 
> Not that I know of.

There is a limit to the length of arguments to the exec()-functions
(measured in bytes). It's even in POSIX.1: ARG_MAX, you can query it
with "getconf ARG_MAX". When using shell builtins (like echo, instead
of the "external" /bin/echo), no exec() happens and the limit does
not apply.
If I got my history right, this was even in 4.4BSD.

Regards,
Christoph

-- 
Spare Space.
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to