Package: expect Version: 5.45.4-7 Severity: normal X-Debbugs-Cc: [email protected]
Dear Maintainer, * What led up to the situation? I ran the gdb testsuite on a ppc64-linux machine, and ran into a failure in a test-case. For more details, see https://sourceware.org/bugzilla/show_bug.cgi?id=34471. I manage to minimize the behaviour to a standalone expect script: ... $ cat test.exp exp_internal 1 set str "all" set re {(?=a)all} # Matches here: puts [regexp $re $str] spawn sh -c "cat <<'EOF' $str EOF" # But not here: expect { -re $re { puts "PASS" } } ... * What exactly did you do (or not do) that was effective (or ineffective)? I ran the script: ... $ expect test.exp 1 spawn sh -c cat <<'EOF' all EOF parent: waiting for sync byte parent: telling child to go ahead parent: now unsynchronized from child spawn: returns {2779718} Gate keeper glob pattern for '(?=a)all' is 'aall'. Activating booster. expect: does "" (spawn_id exp4) match regular expression "(?=a)all"? Gate "aall"? gate=no all expect: does "all\r\n" (spawn_id exp4) match regular expression "(?=a)all"? Gate "aall"? gate=no expect: read eof expect: set expect_out(spawn_id) "exp4" expect: set expect_out(buffer) "all\r\n" ... * What was the outcome of this action? - Gate keeper glob pattern for '(?=a)all' is 'aall'. - no PASS in the output * What outcome did you expect instead? - Gate keeper glob pattern for '(?=a)all' is 'all'. - PASS in the output -- System Information: Debian Release: forky/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: ppc64 Kernel: Linux 7.1.3+deb14-powerpc64 (SMP w/64 CPU threads; PREEMPT) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages expect depends on: ii libc6 2.42-17 ii libtcl8.6 8.6.18+dfsg-1 ii libtcl9.0 9.0.4+dfsg-1 ii tcl-expect 5.45.4-7 ii tcl8.6 8.6.18+dfsg-1 ii tcl9.0 9.0.4+dfsg-1 expect recommends no packages. Versions of packages expect suggests: ii tk8.6 8.6.18-1 -- no debconf information

