[ PATCH ] NEWS: Make it clear that fltexpr is a *loadable* builtin

2025-06-09 Thread Duncan Roe
Hi NEWS announces the new fltexpr builtin but doesn't mention you have to enable it. BTW, fltexpr is so much closer to let than to expr, wouldn't it be better called letflt? (Not fltlet - that sounds like a baby flt :) Cheers ... Duncan. diff --git a/NEWS b/NEWS index 2107abef..e2f9cc7b 100644 -

Re: Meta: `help cut` doesn't document what -a does

2025-06-06 Thread Duncan Roe
On Fri, Jun 06, 2025 at 10:27:56AM -0400, Chet Ramey wrote: > > They're always built and installed when you use `make install'. The > problem, of course, is users (some) or distros (all) who don't use a ^^^ Slackware does > simple `make install', bu

Re: `help cut` doesn't document what -a does

2025-06-05 Thread Duncan Roe
On Thu, Jun 05, 2025 at 11:12:43PM -0400, Greg Wooledge wrote: > On Fri, Jun 06, 2025 at 12:55:34 +1000, Duncan Roe wrote: > > On Thu, Jun 05, 2025 at 06:55:55AM -0400, Greg Wooledge wrote: > > > On Thu, Jun 05, 2025 at 12:34:44 +0200, microsuxx wrote: > > > > i ins

Re: `help cut` doesn't document what -a does

2025-06-05 Thread Duncan Roe
On Thu, Jun 05, 2025 at 06:55:55AM -0400, Greg Wooledge wrote: > On Thu, Jun 05, 2025 at 12:34:44 +0200, microsuxx wrote: > > i installed bash dev , but there is no `help cut` > > It's a "loadable builtin". You have to build those, install them, > and then load the "cut" builtin explicitly. > `mak

Re: lcut query

2025-06-05 Thread Duncan Roe
On Thu, Jun 05, 2025 at 01:39:24PM -0400, Chet Ramey wrote: > On 6/5/25 10:27 AM, Chet Ramey wrote: > > On 6/5/25 6:41 AM, Duncan Roe wrote: > > > Hi Chet, > > > > > > `help lcut` implies to me that columns specified -b or -c should go to > > > sep

lcut query

2025-06-05 Thread Duncan Roe
Hi Chet, `help lcut` implies to me that columns specified -b or -c should go to separate elements of ARRAY (unlike what cut does), but they do not. | 20:20:34$ lcut -a i -c1,2,3 abc | 20:30:13$ echo ${i[0]} | abc | 20:30:23$ echo ${i[1]} | | 20:30:42$ Cheers ... Duncan.

Re: `help cut` doesn't document what -a does

2025-06-05 Thread Duncan Roe
On Wed, Jun 04, 2025 at 09:43:00AM -0400, Chet Ramey wrote: > On 6/2/25 5:58 AM, Duncan Roe wrote: > > Hi, > > > > `cut -a ARRAY ...` puts its last line of output in ARRAY[0] and discards any > > other elements ARRAY used to have. I tried 3 alternatives: > > Than

`help cut` doesn't document what -a does

2025-06-02 Thread Duncan Roe
Hi, `cut -a ARRAY ...` puts its last line of output in ARRAY[0] and discards any other elements ARRAY used to have. I tried 3 alternatives: Alternative A: put last line of output in ARRAY[0] but preserve any other elements. Alternative B: empty out the array then put lines of output in successiv

Re: [PATCH 1/1] Build loadable builtin fltexpr; fix help for history and export

2025-04-06 Thread Duncan Roe
On Sun, Apr 06, 2025 at 05:16:18PM +1000, Duncan Roe wrote: > --- > builtins/history.def | 3 ++- > builtins/setattr.def | 2 +- > examples/loadables/Makefile.in | 4 ++-- > 3 files changed, 5 insertions(+), 4 deletions(-) BTW if you like the above patches, sa

3 updates for 5.3rc1

2025-04-06 Thread Duncan Roe
Hi, I found the following 3 items. They are addressed by the patch in next email. Patch is against 2e113467f061587a3475b692d25ca449717834c8 in the devel branch. 1. The new fltexpr loadable builtin doesn't get built. Need to move it from OTHERPROG to ALLPROG in Makefile.in. 2. `help export` claim

[PATCH 1/1] Build loadable builtin fltexpr; fix help for history and export

2025-04-06 Thread Duncan Roe
--- builtins/history.def | 3 ++- builtins/setattr.def | 2 +- examples/loadables/Makefile.in | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/builtins/history.def b/builtins/history.def index fa79c0b9..6ce8c8b6 100644 --- a/builtins/history.def +++ b/bu

Re: ;exit in bash history causes bash to exit

2025-03-26 Thread Duncan Roe
On Tue, Mar 25, 2025 at 05:55:23PM -0400, Greg Wooledge wrote: > On Tue, Mar 25, 2025 at 22:16:15 +0100, microsuxx wrote: > > when bash reads exit cmd it will exit > > so bash reads rc and exits .. > > also .. u may have a ';exit' alias .. > > The claim is that the ;exit appears in .bash_history (n