binfalse is set to true in the lastpipe test

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

binfalse is set to true in the lastpipe test

Pierre Labastie
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -Wno-parentheses -Wno-format-security
uname output: Linux turboli 5.6.15-lfs-1 #1 SMP Wed May 27 21:46:33
CEST 2020 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 11
Release Status: release

Description:
  Running tests in the chroot environment of the linuxfromscratch book.
  the run-lastpipe test outputs:
        9c9
        < 0 -- 0 0 0
        ---
        > 1 -- 0 1 0

  Note that in this environment the true and false binaries are only
  available in /tools/bin, so the script uses variables bintrue and
  binfalse.
Repeat-By:
  You can reproduce this behavior by creating a dir, for example ~/bin.
  Move the true and false binaries to ~/bin, and add ~/bin to the
  PATH, then run tests.

Fix:
  The script sets binfalse to true (*) if false not found in /usr/bin
  nor in /bin. Change it to false.
(*) still the same on the devel branch on May 31st

P. labastie


Reply | Threaded
Open this post in threaded view
|

Re: binfalse is set to true in the lastpipe test

Chet Ramey
On 5/31/20 11:25 AM, Pierre Labastie wrote:

> Bash Version: 5.0
> Patch Level: 11
> Release Status: release
>
> Description:
>   Running tests in the chroot environment of the linuxfromscratch book.
>   the run-lastpipe test outputs:
>         9c9
>         < 0 -- 0 0 0
>         ---
>         > 1 -- 0 1 0
>
>   Note that in this environment the true and false binaries are only
>   available in /tools/bin, so the script uses variables bintrue and
>   binfalse.
> Repeat-By:
>   You can reproduce this behavior by creating a dir, for example ~/bin.
>   Move the true and false binaries to ~/bin, and add ~/bin to the
>   PATH, then run tests.

Thanks for the report.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    [hidden email]    http://tiswww.cwru.edu/~chet/