• Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • rhel-8.6.0
    • bash
    • None
    • Moderate
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None

      Simple reproducer:

      $ echo "echo foobar" | bash -t

      should output:

      foobar

      But instead it produces no output. Several experiments with options like '-e', '-x' and '-v' were done.

      First guess, but untested is that replacing eval.c:reader_loop() block:

      if (just_one_command)
      EOF_Reached = EOF;

      with:

      if (just_one_command)

      { rl_forced_update_display (); EOF_Reached = EOF; }

      might correct the issue.

      Diff with bash-5, where it works, shows a call to 'reset_readahead_token ();'
      but this does not exist in bash-4. This should not be the cause also.

              rhn-support-svashish Siteshwar Vashisht
              rhn-support-pandrade Paulo Andrade
              Siteshwar Vashisht Siteshwar Vashisht
              Karel Volný Karel Volný
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: