https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111360

            Bug ID: 111360
           Summary: contrib/gcc_update: bad test
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: egallager at gcc dot gnu.org
  Target Milestone: ---

Running contrib/gcc_update on the gcc111 machine on the compile farm includes
the following message in its output:

./contrib/gcc_update[346]: test: argument expected

The line in question has:

        if test -n $r; then

Shouldn't the "${r}" be quoted or something? Or maybe the issue is actually
that the command to set it on the previous lines is failing; it's set like
this:

        # Open-coded version of "git gcc-descr" from
contrib/gcc-git-customization.sh
        revision=`$GCC_GIT log -n1 --pretty=tformat:%h`
        r=`$GCC_GIT describe --all --match 'basepoints/gcc-[0-9]*' HEAD \
           | sed -n
's,^\(tags/\)\?basepoints/gcc-\([0-9]\+\)-\([0-9]\+\)-g[0-9a-f]*$,r\2-\3,p;s,^\(tags/\)\?basepoints/gcc-\([0-9]\+\)$,r\2-0,p'`;

Reply via email to