PDCurses icon indicating copy to clipboard operation
PDCurses copied to clipboard

missing escapes in configure script

Open ThomasDickey opened this issue 1 year ago • 1 comments

in x11/aclocal.m4, I see

if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
        O2SAVE=""
        SAVE2O=""
        CC2O="-o $"'@'
        AC_MSG_RESULT(yes)
else
        O2SAVE="-mv \`basename "$'@'" .sho\`.o \`basename "$'@'" .sho\`.o.save;"
        SAVE2O="-mv \`basename "$'@'" .sho\`.o "$'@'"; mv \`basename "$'@'" .sho\`.o.save \`basename "$'@'" .sho\`.o"
        CC2O=""
        AC_MSG_RESULT(no)
fi

Those dollar-signs in the else-branch are discarded. You can fix this by putting a backslash before each.

ThomasDickey avatar Mar 08 '24 22:03 ThomasDickey

I forgot to mention that this feeds into the configure script, which was last generated by autoconf 2.69 (but in a quick check with 2.71 and seeing the warning messages, I chose to just edit the copy which I use - ymmv).

ThomasDickey avatar Mar 15 '24 23:03 ThomasDickey