On 12-Feb-09, at 6:03 PM, Pavel Dudrenov wrote:
So I tried the new help procedure but I cant get it to work. Here is my session tryouts:
pavel@dudrenov:~/junk/gambc-v4_4_1$ /usr/local/Gambit-C/bin/gsi Gambit v4.4.1
(help table->list)
[: 73: ==: unexpected operator *** WARNING -- unsupported operation: help *** ERROR IN (console)@1.1 -- failed to display the document "help" "table->list" "" "Definition_of_table-%3Elist"
Seems like your /bin/sh does not support the == operator. Strange! Is this on a Linux system? Which distribution? Which version?
I'm not sure my use of == in ~~bin/gambc-doc.bat is portable. Does anyone have a suggestion for a more portable equality test? Please try this:
In ~~bin/gambc-doc.bat replace the line
if [ "" != "" ]; then
by
if test "" != ""; then
and replace the line
if [ "${GAMBC_DOC_ARG1}" == "help" ]; then
by
if test "${GAMBC_DOC_ARG1}" = "help"; then
Let me know if that works.
Marc