Re: bug: 0.5.13 regression in parsing

Abdullah <[email protected]> Mon, 22 Sep 2025 23:40:02 +0300
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Same error also happened to me with dash 0.5.12.

But I assume the bug is not from dash but from libtool.

> archive_expsym_cmds="echo "{ global:" > $output_objdir/$libname.ver~
>              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >>
> $output_objdir/$libname.ver~
>              echo "local: *; };" >> $output_objdir/$libname.ver~
>              $CC -shared $pic_flag $libobjs $deplibs $compiler_flags
> $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver
> -o $lib"

That is a broken syntax, they should've used single quotes.
I.e.:

> archive_expsym_cmds="echo '{ global:' > $output_objdir/$libname.ver~
>              cat $export_symbols | $SED -e 's/\(.*\)/\1;/' >>
> $output_objdir/$libname.ver~
>              echo 'local: *; };' >> $output_objdir/$libname.ver~
>              $CC -shared $pic_flag $libobjs $deplibs $compiler_flags
> $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver
> -o $lib"