[quoted lines by Song Jianping on May 17, 2000, at 10:47]

>Is there any limits on the max command line length of bash?

You're probably running into one of two system limits. You didn't give any
details, so it's not possible to know for sure. Here, however, are a couple of
guesses.

First: There is a maximum line length limit for lines being entered via the
keyboard (tty), or via a pseudo keyboard (pty) e.g. if you're using telnet,
when in canonical input mode (which is usually the case). You can query this
value via the command "getconf MAX_CANON path-to-keyboard-device". For example:

    getconf MAX_CANON /dev/tty1
    255

Second: There is a system limit on the number of bytes which can be passed to a
created process during the fork. This essentially includes the combined size of
the argument list and the environment variable names and values. You can query
this value via the command "getconf ARG_MAX". For example:

    getconf ARG_MAX
    131072

-- 
Dave Mielke           | 856 Grenon Avenue | I believe that the Bible is the
Phone: 1-613-726-0014 | Ottawa, Ontario   | Word of God. Please contact me
EMail: [EMAIL PROTECTED] | Canada  K2B 6G3   | if you're concerned about Hell.

Reply via email to