Hi Berny,
Bernhard Voelker <[email protected]> writes:
> Hi *,
>
> I'm noticing 2 stty test failing on openSUSE:Tumbleweed.
>
> FAIL tests/stty/stty.sh (exit status: 1)
> FAIL tests/stty/stty-pairs.sh (exit status: 1)
>
> Log snippet:
>
> + sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d'
> ++ stty -a
> ++ tr -s ';' '\n'
> ++ sed 's/^ //;/^speed/d;/^rows/d;/^columns/d;/ = /d;s/-//g'
> + options=$'ispeed 9600 baud\nospeed 38400 baud\nparenb parodd
> cmspar cs8 hupcl cstopb cread clocal crtscts\nignbrk brkint ignpar
> parmrk inpck istrip inlcr igncr icrnl ixon ixoff\niuclc ixany
> imaxbel iutf8\nopost olcuc ocrnl onlcr onocr onlret ofill ofdel nl0
> cr0 tab0 bs0 vt0 ff0\nisig icanon iexten echo echoe echok echonl
> noflsh xcase tostop echoprt\nechoctl echoke flusho extproc'
> + for opt in $options
> + case $opt in
> + test ispeed = extproc
> + stty ispeed
> stty: missing argument to 'ispeed'
> Try 'stty --help' for more information.
> + fail=1
>
> It looks like if the shell handling of $options has changed.
> The shell is:
>
> bash --version | sed q
> GNU bash, version 5.3.3(1)-release (x86_64-suse-linux)
I looked at your stty.log and it doesn't appear to be an issue with bash
atleast. For reference mine is a similar version but passes:
$ bash --version | head -n 1
GNU bash, version 5.3.0(1)-release (x86_64-redhat-linux-gnu)
My value for options doesn't have ispeed or ospeed because that test is
only meant for bolean options. One of the proceeding commands shows the
difference in our 'stty' output:
# My output.
+ stty -drain
ispeed 9600 baud; ospeed 38400 baud; line = 0;
erase = -;
-brkint -imaxbel iutf8
# Your output.
+ stty -drain
ispeed 9600 baud; ospeed 38400 baud; line = 0;
erase = -;
-brkint -imaxbel iutf8
But I am not too sure why that is the case.
Collin