Re: Option -p in apropos(1)

2022-07-16 Thread Rocky Hotas
On giu 03 21:35, David H. Gutteridge wrote: > This (along with other fixes) has now been pulled up to the netbsd-9 > branch, so the next releng build of 9.2_STABLE will include it. Great! Thank you :) Rocky

Re: Option -p in apropos(1)

2022-06-03 Thread David H. Gutteridge
On Tue, 2022-05-17 at 08:24 -0400, David H. Gutteridge wrote: > On 2022-05-17 04:33, Rocky Hotas wrote: > > On mag 16 21:51, David H. Gutteridge wrote: > > > > > It does accept $PAGER as a definition of what tool to use for the > > > purpose, though that wasn't documented in the apropos(1) man

Re: Option -p in apropos(1)

2022-05-18 Thread David H. Gutteridge
On Tue, 2022-05-17 at 07:59 +, RVP wrote: > On Mon, 16 May 2022, David H. Gutteridge wrote: > > > Thanks for this, I've applied a similar patch to HEAD. Assuming > > everyone's satisfied, I could request a pullup to netbsd-9. > > > > Thanks for that. Another patch below: > > 1. Ignore

Re: Option -p in apropos(1)

2022-05-17 Thread RVP
On Tue, 17 May 2022, Rocky Hotas wrote: I added the line in my repository sourcecode. Building a kernel is straightforward, but what about this case? How to build and use apropos from the sourcecode? Building parts of userland is pretty straight-forward too. Assuming the standard /usr/tools

Re: Option -p in apropos(1)

2022-05-17 Thread Steffen Nurpmeso
Rocky Hotas wrote in <20220517075839.k77w2qykeibhvrhc@delpotro>: |On mag 16 21:05, Steffen Nurpmeso wrote: |> |> I have no idea but does the program combo honour $LESS | |Sorry, I can understand what you are meaning. Variable $LESS in my shell |appears to be empty. Well it seems there are

Re: Option -p in apropos(1)

2022-05-17 Thread Steffen Nurpmeso
David H. Gutteridge wrote in : |On Mon, 16 May 2022 at 21:05:59 +0200, Steffen Nurpmeso wrote: |>Rocky Hotas wrote in |> <20220516180129.gwvmvesgw4dxeage@delpotro>: |>|On mag 16 18:11, Rocky Hotas wrote: |>|> |>|> Am I doing something wrong? |> ... |>|perl5320delta (1) what is new

Re: Option -p in apropos(1)

2022-05-17 Thread David H. Gutteridge
On 2022-05-17 04:33, Rocky Hotas wrote: On mag 16 21:51, David H. Gutteridge wrote: It does accept $PAGER as a definition of what tool to use for the purpose, though that wasn't documented in the apropos(1) man page. I just added it. FTR, for some reason in my default env(1) variable PAGER

Re: Option -p in apropos(1)

2022-05-17 Thread Rocky Hotas
On mag 16 21:51, David H. Gutteridge wrote: > It does accept $PAGER as a definition of what tool to use for the > purpose, though that wasn't documented in the apropos(1) man page. I > just added it. FTR, for some reason in my default env(1) variable PAGER is not set: it is empty. However, if

Re: Option -p in apropos(1)

2022-05-17 Thread Rocky Hotas
On mag 16 20:33, RVP wrote: > > apropos should call pclose(). Please try this patch below: > I added the line in my repository sourcecode. Building a kernel is straightforward, but what about this case? How to build and use apropos from the sourcecode? Rocky

Re: Option -p in apropos(1)

2022-05-17 Thread RVP
On Mon, 16 May 2022, David H. Gutteridge wrote: Thanks for this, I've applied a similar patch to HEAD. Assuming everyone's satisfied, I could request a pullup to netbsd-9. Thanks for that. Another patch below: 1. Ignore SIGPIPE so that we're not killed in the middle of some DB operation

Re: Option -p in apropos(1)

2022-05-17 Thread Rocky Hotas
On mag 16 21:05, Steffen Nurpmeso wrote: > > I have no idea but does the program combo honour $LESS Sorry, I can understand what you are meaning. Variable $LESS in my shell appears to be empty. > does it contain use of alternate screen and quit-at-eof? I don't know how to verify this. > What

Re: Option -p in apropos(1)

2022-05-16 Thread David H. Gutteridge
On Mon, 16 May 2022 at 21:05:59 +0200, Steffen Nurpmeso wrote: >Rocky Hotas wrote in > <20220516180129.gwvmvesgw4dxeage@delpotro>: > |On mag 16 18:11, Rocky Hotas wrote: > |> > |> Am I doing something wrong? > ... > |perl5320delta (1) what is new for perl v5.32.0 > |...Configure 4 For

Re: Option -p in apropos(1)

2022-05-16 Thread David H. Gutteridge
On Mon, 16 May 2022 at 20:33:40 + (UTC), RVP wrote: >On Mon, 16 May 2022, Rocky Hotas wrote: >>Pager formatting is enabled by default (so, it doesn't need neither >>option -p, nor option -P), but the pager is not activated. Results >>are presented as if the option was not specified. > >apropos

Re: Option -p in apropos(1)

2022-05-16 Thread RVP
On Mon, 16 May 2022, Rocky Hotas wrote: Pager formatting is enabled by default (so, it doesn't need neither option -p, nor option -P), but the pager is not activated. Results are presented as if the option was not specified. apropos should call pclose(). Please try this patch below:

Re: Option -p in apropos(1)

2022-05-16 Thread Steffen Nurpmeso
Rocky Hotas wrote in <20220516180129.gwvmvesgw4dxeage@delpotro>: |On mag 16 18:11, Rocky Hotas wrote: |> |> Am I doing something wrong? ... |perl5320delta (1) what is new for perl v5.32.0 |...Configure 4 For clang++, add "#include " to Configure's |probes for "futimes", "strtoll",

Re: Option -p in apropos(1)

2022-05-16 Thread Rocky Hotas
On mag 16 18:11, Rocky Hotas wrote: > > Am I doing something wrong? Some very funny updates. First, I'm on NetBSD 9.2 amd64 (but I also tested the same things in another machine with NetBSD 9.0 amd64). The first time I run `apropos' with option `-p', it doesn't work (as written in the previous

Option -p in apropos(1)

2022-05-16 Thread Rocky Hotas
Hello! I was trying to run apropos(1) with option -p. According to the man page, it should -p Turn on pager formatting, and pipe the results through a pager (defaulting to more(1)). Pager formatting is enabled by default (so, it doesn't need neither option -p, nor option