bash command line limit
marco atzeri
marco.atzeri@gmail.com
Thu Oct 31 15:05:00 GMT 2013
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
More information about the Cygwin
mailing list