22.2.1 Size Limitations

back: sh implementation
forward: magic numbers
fastback: environment
up: sh implementation
fastforward: environment
top: autoconf, automake, and libtool
contents: table of contents
index: index
about: about this document

22.2.1 Size Limitations

Quite a lot of the Unix vendor implementations of the Bourne shell have a fixed buffer for storing command lines, as small as 512 characters in the worst cases. You may have an error akin to this:

 $ ls -d /usr/bin/*  wc -l sh: error: line too long 

Notice that the limit applies to the expanded command line, not just the characters typed in for the line. A portable way to write this would be:

 $ ( cd /usr/bin && ls  wc -l )    1556 

This document was generated by Gary V. Vaughan on May, 24 2001 using texi2html

GNU Autoconf, Automake and Libtool
GNU Autoconf, Automake, and Libtool
ISBN: 1578701902
EAN: 2147483647
Year: 2002
Pages: 290

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net