Re: Use of uninitialized values in mail checking

2012-06-22 Thread Chet Ramey
On 6/21/12 11:47 AM, szymon.kal...@uj.edu.pl wrote: > Bash Version: 4.2 > Patch Level: 29 > Release Status: release > > > I found that behavior of bash depends on uninitialized values in memory. > In function file_mod_date_changed (mailcheck.c), if mailstat returns a > non-zero > value, we are c

Re: Unicode collation for readline completion in bash

2012-06-22 Thread Chet Ramey
On 6/20/12 7:27 AM, Rob Hoelz wrote: > So, I have a number of files with diacritics in the name, like this: > > $ ls > Sigur Rós - Dauðalogn.ogg Sigur Rós - Ég Anda.ogg Sigur Rós - > Rembihnútur.ogg Sigur Rós - Varúð.ogg > Sigur Rós - Ekki Múkk.ogg Sigur Rós - Fjögur Píanó.ogg Sigur

Re: Brace expansion infinite loop, memory corruption, and other bugs.

2012-06-22 Thread Chet Ramey
> On 6/5/12 12:14 AM, Scott McMillan wrote: > > A week or so ago I submitted a bug report using the bashbug command > > that involved some > > overflow issues with braces.c on OpenSUSE12.1 X86_64. Browsing the > > patches, I got > > the impression that braces.c hasn't been modified since the origin

cd // produces unexpected results

2012-06-22 Thread Bill Gradwohl
By accident I keyed in : cd // and noticed that my prompt included both slashes. Further testing, I think, reveals a minor issue: root@billlaptop ~# pwd; cd //; echo PWD=$PWD; cd /root; echo OLDPWD=$OLDPWD /root PWD=// OLDPWD=// I don't believe PWD and OLDPWD should contain double slashes as th

Re: cd // produces unexpected results

2012-06-22 Thread Chet Ramey
> By accident I keyed in : > > cd // > > and noticed that my prompt included both slashes. Posix says shells have to leave two leading slashes in a pathname alone. Three or more can be collapsed to one, but two have to stay unchanged. This has come up multiple times in the past. Chet -- ``The

Re: cd // produces unexpected results

2012-06-22 Thread Stefano Lattarini
On 06/22/2012 09:47 PM, Chet Ramey wrote: >> By accident I keyed in : >> >> cd // >> >> and noticed that my prompt included both slashes. > > Posix says shells have to leave two leading slashes in a pathname alone. > Three or more can be collapsed to one, but two have to stay unchanged. > This has

Re: Unicode collation for readline completion in bash

2012-06-22 Thread Linda Walsh
Rob Hoelz wrote: Hello, I have an idea for a new feature for bash/readline, and I wanted to get the community's feedback before I go about implementing it. --- Have you looked at the Unicode collation algorithm? They have one published with each released. You say you