Re: bash 4.2 breaks source finding libs in lib/filename...

2012-03-03 Thread Chet Ramey
On 3/3/12 5:09 AM, John Kearney wrote: >>> On the other hand, there is the possibility to add FPATH and autoload like >>> in ksh93 ... >>> I haven't think to much about it but my guess is that it would really be >>> easy to implement a module system with that. An autoload that uses FPATH is trivi

Re: bash 4.2 breaks source finding libs in lib/filename...

2012-03-03 Thread Steven W. Orr
It could be even furthermore separated from the traditional "source" and a new keyword introduced like "require" a la lisp which would be able to do things like: 1) load the file, searching in the BASH_LIB_PATH (or other variables) for a file with optionally the extension .sh or .bash 2) only lo

Bash scripting and large files: input with the read builtin from a redirection gives unexpected result with files larger than 2GB.

2012-03-03 Thread Jean-François Gagné
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-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACK

Re: bash 4.2 breaks source finding libs in lib/filename...

2012-03-03 Thread John Kearney
On 03/03/2012 09:43 AM, Stefano Lattarini wrote: > On 03/03/2012 08:28 AM, Pierre Gaston wrote: >> On Fri, Mar 2, 2012 at 9:54 AM, Stefano Lattarini wrote: >> >>> Or here is a what it sounds as a marginally better idea to me: Bash could >>> start supporting a new environment variable like "BASHLIB"

Re: bash 4.2 breaks source finding libs in lib/filename...

2012-03-03 Thread Stefano Lattarini
On 03/03/2012 08:28 AM, Pierre Gaston wrote: > On Fri, Mar 2, 2012 at 9:54 AM, Stefano Lattarini wrote: > >> Or here is a what it sounds as a marginally better idea to me: Bash could >> start supporting a new environment variable like "BASHLIB" (a' la' >> PERL5LIB) >> or "BASHPATH" (a' la' PYTHONPA