Tab completion freezes shell

2015-01-23 Thread Artur Rataj
Hello. After typing the following, then space, then Tab, tar --exclude-vcs cBvf a.tar.bz2 the shell or whatever freezes. Best regards, Artur

fix ctype usage bugs in readline

2015-01-23 Thread Eric Blake
On platforms where 'char' is signed, using ctype functions on 'char' arguments produces undefined behavior for arguments that are larger than 127. In particular, on Cygwin, isspace((char)255) MUST return the same 0 result as isspace(EOF), while there are some single-byte locales in which isspace((

silence some compiler warnings about readline dead code

2015-01-23 Thread Eric Blake
Noticed this while fixing compiler warnings for readline on cygwin: diff --git i/lib/readline/readline.c w/lib/readline/readline.c index abb29a0..9bb552f 100644 --- i/lib/readline/readline.c +++ w/lib/readline/readline.c @@ -1,7 +1,7 @@ /* readline.c -- a general facility for reading lines of inp

Re: readline 6.3 violates POSIX by doing #undef setjmp

2015-01-23 Thread Eric Blake
On 01/23/2015 03:53 PM, Eric Blake wrote: > On 01/23/2015 02:58 PM, Eric Blake wrote: >> http://pubs.opengroup.org/onlinepubs/9699919799/functions/setjmp.html is >> clear: >> >> "It is unspecified whether setjmp() is a macro or a function. If a macro >> definition is suppressed in order to access a

Re: readline 6.3 violates POSIX by doing #undef setjmp

2015-01-23 Thread Eric Blake
On 01/23/2015 02:58 PM, Eric Blake wrote: > http://pubs.opengroup.org/onlinepubs/9699919799/functions/setjmp.html is > clear: > > "It is unspecified whether setjmp() is a macro or a function. If a macro > definition is suppressed in order to access an actual function, or a > program defines an ext

readline 6.3 violates POSIX by doing #undef setjmp

2015-01-23 Thread Eric Blake
http://pubs.opengroup.org/onlinepubs/9699919799/functions/setjmp.html is clear: "It is unspecified whether setjmp() is a macro or a function. If a macro definition is suppressed in order to access an actual function, or a program defines an external identifier with the name setjmp, the behavior is