This is the mail archive of the
cygwin
mailing list for the Cygwin project.
bash command line limit
- From: marco atzeri <marco dot atzeri at gmail dot com>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Thu, 31 Oct 2013 14:25:35 +0100
- Subject: bash command line limit
- Authentication-results: sourceware.org; auth=none
There is any expected specific limit to command line length in
bash scripts on cygwin ?
Testing octave, I am noticing that line longer than ~ 5000 characters
are aborted with no message.
The line is :
--------------------------------------------------------------------
OCTAVE_BINDIR="$builddir/src" \
OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \
OCTAVE_DEFAULT_QT_SETTINGS="$builddir/libgui/default-qt-settings" \
OCTAVE_LOCALE_DIR="$builddir/libgui/languages" \
OCTAVE_JAVA_DIR="$builddir/scripts/java" \
exec $builddir/libtool -v --mode=execute $driver \
"$octave_executable" --no-init-path --path="$LOADPATH" \
--image-path="$IMAGEPATH" --doc-cache-file="$DOCFILE" \
--built-in-docstrings-file="$BUILT_IN_DOCSTRINGS_FILE" \
--texi-macros-file="$TEXIMACROSFILE" --info-file="$INFOFILE" "$@"
---------------------------------------------------------------------
end its full lenght when expended is over 5000 characters.
Just removing the last "\" before exec and dropping the length ~ 4950
and the script works again
In theory , the limit should be much more:
$ getconf ARG_MAX
32000
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple