SUMMARY: How many is too many words to csh?

From: Lawrence R. Rogers (lrr@Princeton.EDU)
Date: Mon Jun 08 1992 - 16:51:25 CDT


Reply-to: "Lawrence R. Rogers" <lrr@Princeton.EDU>
Followup-to: "Lawrence R. Rogers" <lrr@Princeton.EDU>
It's in the man page in the LIMITATIONS section. Here's the text:

LIMITATIONS
     Words can be no longer than 1024 characters. The system
     limits argument lists to 1,048,576 characters. However, the
     maximum number of arguments to a command for which filename
     expansion applies is 1706. Command substitutions may expand
     to no more characters than are allowed in the argument list.
     To detect looping, the shell restricts the number of alias
     substitutions on a single line to 20.

and the following:

% @ i = 1
% while ($i < 1706)
        touch $i
        @ i++
end
% echo *
...
% touch 1706
% echo *
Arguments too long.
% echo `find . -print`
Too many words from ``.
% sh
$ echo *
...
$ ^D
% tcsh
% echo *
...
% ^D
% bash
bash$ echo *
...
bash$ ^D

 ===== ======= ======= Larry Rogers
= = = = Manager, UNIX Systems
= = = Princeton University
= = = 87 Prospect Street, Room 201
= = = Princeton, NJ 08544
= = = lrr@Princeton.EDU, princeton!lrr
= = = = Phone: 609-258-6483/6000
 ===== ======= = FAX: 609-258-1069/3943



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:43 CDT