Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!usenet.stanford.edu!not-for-mail From: Chet Ramey Newsgroups: gnu.bash.bug Subject: Re: Bash 4.3.30 on AIX 6.1 filename completion Date: Mon, 3 Aug 2015 09:40:23 -0400 Lines: 37 Approved: bug-bash@gnu.org Message-ID: References: <55BEBADE.8030108@goshawk.com> Reply-To: chet.ramey@case.edu NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1438609238 11821 208.118.235.17 (3 Aug 2015 13:40:38 GMT) X-Complaints-To: action@cs.stanford.edu Cc: chet.ramey@case.edu To: Steve Dahl , bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 In-Reply-To: <55BEBADE.8030108@goshawk.com> X-Junkmail-Status: score=10/50, host=mpv6.cwru.edu X-Junkmail-Whitelist: YES (by domain whitelist at mpv2.tis.cwru.edu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 129.22.105.37 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:11289 On 8/2/15 8:50 PM, Steve Dahl wrote: > If on AIX 6.1, I mount an NFS volume exported from CentOS 6.7, Bash > (4.3.30) is unable to do tab completion within that file system. If (for > example) I search for files that I know exist, such as: > > ls -l /path/to/files/*.h > > ...no answers are returned even though > > ls -l /path/to/files > > ...will show those files. > > In the course of trying to understand why AIX didn't like our new NFS > server, I found that bash's glob.c depends on opendir(), and that in a > simple test on that NFS file system, opendir() fails with EOVERFLOW. > > The AIX man page for opendir() documents opendir64() but doesn't go into a > lot of detail about what it's for other than the inferred hint that it > might allow for file sizes larger than 4 GB. > > The same simple test that gets EOVERFLOW when I use opendir() indeed seems > to succeed when I use opendir64(). Once you know the answer, you can find > hints on IBM forums that seem to confirm it. > > Is there already a version of "bash" somewhere that already supports large > file systems on AIX if its compilation is configured right? Bash and Readline don't use opendir64/readdir64 directly. You might be able to get it to work by using cpp defines in lib/readline/complete.c Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/