I've discovered a gap in POSIX compliance in lib/sh/strftime.c on the devel
branch. POSIX mandates that the timeval struct be defined in ,
although as can be seen on Line 67 of the file in question, the file is only
included here if the tm struct -- which POSIX mandates be defined in
-- is def
Am Donnerstag, 4. Januar 2018, 14:43:02 CET schrieb Greg Wooledge:
> On Thu, Jan 04, 2018 at 11:24:30AM +0100, sky...@top-email.net wrote:
> > # Bug 1?: +Option read -n1
> > - Cursor doesn't jump automaticly to next line
>
> It's not supposed to. If you want th
# GNU bash, Version 4.4.12(1)-release
# Builtin command 'read'
while read -p "Select! (y/n): "; do
case "$REPLY" in
[yY]) echo "Yes selected!"; break ;;
[nN]) echo "No selected!"; break ;;
esac
done
# Bug 1?: +Option read -n1
- Cursor does
It is necessary to refresh the variable $COLUMNS in a script (COLUMNS="tput
cols") otherwise the command "select" will not set the number of columns
correctly for actual screen resolution.
Information:checkwinsizeon
Please try this script-example to see the effect:
#!/bin/bash
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'
-
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/share/locale'
-