Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread tom kronmiller
tom kronmiller wrote: > I ended up using setvbuf(stdin, NULL, _IONBF, 0) in the parent process and > that seems to have fixed the actual program I was having trouble with. thomas schmitt asked: > stdin ? Not setvbuf(stdout, NULL, _IONBF, 0) ? Yes, stdin. The problem I was having was stdin

More printers in the Brother printer-driver-brlaser package

2023-10-23 Thread C.T.F. Jansen
Greetings, There are drivers for more Brother laser printers in the package printer-driver-brlaser . One doesn't have to put up with Brother's atrocious install script to set up the DCP-1610W. The driver package from the Debian repository doesn't produce the extraneous squiggles and blobs

Re: udev creates wrong symlink from rule after upgrade to bookworm

2023-10-23 Thread David Wright
On Sun 22 Oct 2023 at 10:17:35 (-0700), pe...@easthope.ca wrote: > Appears that the failure reported by Karl Schmidt occurred when two > devices matched the rule. > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040445 > > Similar erroneous result here with only one matching device. Details

Re: Lenovo E16 Gen1 with Intel Iris adjust brightness, get Fn-Keys working

2023-10-23 Thread David Wright
On Mon 23 Oct 2023 at 20:03:50 (+0200), basti wrote: > I have a Lenovo E16 Gen1 with Intel Iris and try to adjust brightness > via Fn-Keys. > All other Fn-Keys are working. > > basti@thinkpad:~$ xbacklight -set 50 > No outputs have backlight property > > I also try to create a xorg.conf: > >

Re: Can't upgrade my desktop

2023-10-23 Thread Max Nikulin
On 24/10/2023 06:53, Jeffrey Walton wrote: $ grep -iIR -E 'bookworm|bullseye|buster|stretch|jessie' /etc/apt may list additional suspects, especially if they are hidden away in /etc/apt/sources.list.d. I would prefer either apt policy or apt-cache policy to get list of

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Stefan Monnier
Max Nikulin [2023-10-23 23:25:33] wrote: > On 23/10/2023 15:45, Thomas Schmitt wrote: >> - Why no "fork() = " after the lines which show their number for the first >> time ? > https://stackoverflow.com/questions/2530663/printf-anomaly-after-fork > fork clones stdout buffer and child exit flushes

Re: [OT] Mutt y Gmail

2023-10-23 Thread Guido Ignacio
El lun, 9 oct 2023 a las 6:14, alfon () escribió: > > > El 28/9/23 a las 20:20, Camaleón escribió: > > > > > Desde hace ¿años¹? Gmail ya no permite usar la contraseña que usas > > > cuando accedes desde el webmail o aplicaciones que admitan sistemas de > > > autentificación avanzados (OAuth2). > >

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread gene heskett
On 10/23/23 16:35, Andy Smith wrote: Hello, On Sun, Oct 22, 2023 at 10:33:47PM -0400, gene heskett wrote: On 10/22/23 20:48, Greg Wooledge wrote: Any issues you've encountered have been the result of misconfiguration. You have repeatedly shown errors in your config files, and once those have

Re: Can't upgrade my desktop

2023-10-23 Thread Jeffrey Walton
On Mon, Oct 23, 2023 at 6:57 PM Charles Kroeger wrote: > > > I can't upgrade, I cant' fix--broken install, I mean that whatever I > > try, same error message ... > > I have seen these responses before when I didn't have all the apt > repositories I needed listed in /etc/apt/sources.list e.g.

Re: Can't upgrade my desktop

2023-10-23 Thread Charles Kroeger
> I can't upgrade, I cant' fix--broken install, I mean that whatever I > try, same error message ... I have seen these responses before when I didn't have all the apt repositories I needed listed in /etc/apt/sources.list e.g. trixie sources. This is what they look like these day: deb

Re: Lenovo E16 Gen1 with Intel Iris adjust brightness, get Fn-Keys working

2023-10-23 Thread Charles Curley
On Mon, 23 Oct 2023 20:03:50 +0200 basti wrote: > I have a Lenovo E16 Gen1 with Intel Iris and try to adjust brightness > via Fn-Keys. > All other Fn-Keys are working. Your best bet for this might be the thinkwiki. https://www.thinkwiki.org/wiki/ThinkWiki Good luck. -- Does anybody read

Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-23 Thread Albretch Mueller
Thank you very much, Greg! Since ".description" is constant (an extension used by youtube) I chose to go: ydx=".description" ydxL=${#ydx} ... yut=${yl:-${ydxL}} ... where yl is the line read in in the way you suggested. lbrtchx

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread gene heskett
On 10/23/23 14:09, Greg Wooledge wrote: On Mon, Oct 23, 2023 at 12:12:50PM -0400, gene heskett wrote: Google seems to have high jacked port 80 https://lists.debian.org/msgid-search/0a8b96aa-8630-ee5c-5135-59221c55b...@shentel.net They have, chromium, the google browser, absolutely cannot be

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Greg Wooledge
On Mon, Oct 23, 2023 at 10:45:44PM +0200, Thomas Schmitt wrote: > Greg Wooledge wrote: > > This is what's causing the loop to iterate more times than it should, > > and to re-process input. > > That's not what i see in my experiments. > I see stuttering output which first repeats the lines put

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Thomas Schmitt
Hi, Greg Wooledge wrote: > This is what's causing the loop to iterate more times than it should, > and to re-process input. That's not what i see in my experiments. I see stuttering output which first repeats the lines put out so far before it adds a new line. The getline() loop iterates as

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread Andy Smith
Hello, On Sun, Oct 22, 2023 at 10:33:47PM -0400, gene heskett wrote: > On 10/22/23 20:48, Greg Wooledge wrote: > > Any issues you've encountered have been the result of misconfiguration. > > You have repeatedly shown errors in your config files, and once those > > have been corrected, everything

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Greg Wooledge
On Mon, Oct 23, 2023 at 10:12:44PM +0200, Thomas Schmitt wrote: > The one pointed to by Max Nikulin: > > > https://stackoverflow.com/questions/2530663/printf-anomaly-after-fork > > fork clones stdout buffer and child exit flushes its content. > > would halfways explain what i see with unwritten

Re: Bookworm: NetworkManager

2023-10-23 Thread Andy Smith
Hi, On Sun, Oct 22, 2023 at 06:36:28PM -0400, Lee wrote: > My understanding is that ISC no longer supports their dhcp client > software so the isc-dhcp-client package will go away someday? > correct? & I suspect whatever works today will break when the new > software comes out, so I'd rather get

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Thomas Schmitt
Hi, tom kronmiller wrote: > I ended up using setvbuf(stdin, NULL, _IONBF, 0) in the parent process and > that seems to have fixed the actual program I was having trouble with. stdin ? Not setvbuf(stdout, NULL, _IONBF, 0) ? That would be one of the weirder remedies and explanations which can be

Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-23 Thread Andy Smith
Hello, On Mon, Oct 23, 2023 at 01:32:08AM +, Albretch Mueller wrote: > On 10/22/23, Andy Smith wrote: > > So you might consider telling us what you will do next with the > > suffix of each line. > > Now you have gone into mind reading mode. I've gone into "avoid the need for mind reading"

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread tom kronmiller
I ended up using setvbuf(stdin, NULL, _IONBF, 0) in the parent process and that seems to have fixed the actual program I was having trouble with. On Mon, Oct 23, 2023 at 10:19 AM Thomas Schmitt wrote: > Hi, > > it helps to do > fflush((stdout); > after each printf(), or to run before the

Re: how to force mounting an entry in fstab on boot?

2023-10-23 Thread David Wright
On Mon 23 Oct 2023 at 17:28:54 (+0200), hw wrote: > On Mon, 2023-10-23 at 10:30 -0400, Greg Wooledge wrote: > > On Mon, Oct 23, 2023 at 04:17:11PM +0200, hw wrote: > > > I have an entry in the fstab to mount an NFS share via IPv6. For > > > unknown reasons, the entry is being ignored on boot, so

Re: Comment agrandir une page au format PDF

2023-10-23 Thread Kohler Gerard
Le 19/10/2023 à 18:58, Olivier a écrit : Bonjour, J'ai quelques plans d'architectes au format PDF. 1 plan = 1 page = 1 fichier PDF Si j'en crois les propriétés du document, chaque page a été produite avec AutoCAD au format A0 Quand j'imprime une page sur mon imprimante à feuille A4, les

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread Andrew M.A. Cater
On Mon, Oct 23, 2023 at 02:09:31PM -0400, Greg Wooledge wrote: > On Mon, Oct 23, 2023 at 12:12:50PM -0400, gene heskett wrote: > > > > Google seems to have high jacked port 80 > > > > > > https://lists.debian.org/msgid-search/0a8b96aa-8630-ee5c-5135-59221c55b...@shentel.net > > > > > They have,

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread Greg Wooledge
On Mon, Oct 23, 2023 at 12:12:50PM -0400, gene heskett wrote: > > > Google seems to have high jacked port 80 > > > > https://lists.debian.org/msgid-search/0a8b96aa-8630-ee5c-5135-59221c55b...@shentel.net > > > They have, chromium, the google browser, absolutely cannot be sent to >

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread tomas
On Mon, Oct 23, 2023 at 12:34:17PM -0400, gene heskett wrote: [...] > This thread seems related to a problem we've encountered when reloading an > edited file, forcing the user to use the file->open menu to reload a program > just edited [...] Throw away your editor. Mine doesn't do that.

Lenovo E16 Gen1 with Intel Iris adjust brightness, get Fn-Keys working

2023-10-23 Thread basti
Hello, I have a Lenovo E16 Gen1 with Intel Iris and try to adjust brightness via Fn-Keys. All other Fn-Keys are working. basti@thinkpad:~$ xbacklight -set 50 No outputs have backlight property I also try to create a xorg.conf: |Section "Device" Identifier "Intel Graphics" Driver "intel"

Re: how to bring up message and prevent user login when not connected to a particular VLAN? (was: how to force mounting an entry in fstab on boot?)

2023-10-23 Thread Christoph Brinkhaus
Am Mon, Oct 23, 2023 at 05:57:28PM +0200 schrieb hw: > On Mon, 2023-10-23 at 17:40 +0200, hw wrote: > > On Mon, 2023-10-23 at 16:53 +0200, Christoph Brinkhaus wrote: > > > Am Mon, Oct 23, 2023 at 04:17:11PM +0200 schrieb hw: > > > > Hi, > > > > > > > > I have an entry in the fstab to mount an NFS

Re: Bookworm: NetworkManager

2023-10-23 Thread Lee
On Sun, Oct 22, 2023 at 7:13 PM Pocket wrote: > > On 10/22/23 18:36, Lee wrote: > > On Sun, Oct 22, 2023 at 1:18 PM Greg Wooledge wrote: > >> On Sun, Oct 22, 2023 at 11:22:06AM -0400, Lee wrote: > >>> Just out of curiosity, why didn't you use the example from > >>>

Re: Default DNS lookup command?

2023-10-23 Thread Max Nikulin
On 22/10/2023 18:39, Richard Hector wrote: But not strictly a DNS lookup tool: richard@zircon:~$ getent hosts zircon 127.0.1.1   zircon.lan.walnut.gen.nz zircon That's from my /etc/hosts file, and overrides DNS. I didn't see an option in the manpage to ignore /etc/hosts. getent -s dns

Re: Default DNS lookup command?

2023-10-23 Thread Max Nikulin
On 23/10/2023 20:52, David Wright wrote: AFAICT, if you don't have busybox installed, then I think it's likely that you removed it yourself. Or it is a LXC container installed using the "download" template. It uses systemd-networkd and systemd-resolved. I have never tried qemu with kernel

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread gene heskett
On 10/23/23 10:16, Jon Leonard wrote: On Mon, Oct 23, 2023 at 09:31:11AM -0400, Greg Wooledge wrote: On Mon, Oct 23, 2023 at 11:15:22AM +0200, Thomas Schmitt wrote: it helps to do fflush((stdout); after each printf(), or to run before the loop: setvbuf(stdout, NULL, _IONBF, 0); So it is

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Max Nikulin
On 23/10/2023 15:45, Thomas Schmitt wrote: - Why no "fork() = " after the lines which show their number for the first time ? https://stackoverflow.com/questions/2530663/printf-anomaly-after-fork fork clones stdout buffer and child exit flushes its content.

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread gene heskett
On 10/22/23 22:55, Max Nikulin wrote: On 23/10/2023 04:43, gene heskett wrote: As I keep repeating Dan, there is not a local dns, its all a 15 entry hosts file atm. So that cannot bite /me/. It can. Some day .den TLD may be registered and chosen by a 3d printer manufacturer. It might

Re: how to force mounting an entry in fstab on boot?

2023-10-23 Thread Christoph Brinkhaus
Am Mon, Oct 23, 2023 at 05:40:54PM +0200 schrieb hw: > On Mon, 2023-10-23 at 16:53 +0200, Christoph Brinkhaus wrote: > > Am Mon, Oct 23, 2023 at 04:17:11PM +0200 schrieb hw: > > > Hi, > > > > > > I have an entry in the fstab to mount an NFS share via IPv6. For > > > unknown reasons, the entry is

how to bring up message and prevent user login when not connected to a particular VLAN? (was: how to force mounting an entry in fstab on boot?)

2023-10-23 Thread hw
On Mon, 2023-10-23 at 17:40 +0200, hw wrote: > On Mon, 2023-10-23 at 16:53 +0200, Christoph Brinkhaus wrote: > > Am Mon, Oct 23, 2023 at 04:17:11PM +0200 schrieb hw: > > > Hi, > > > > > > I have an entry in the fstab to mount an NFS share via IPv6. For > > > unknown reasons, the entry is being

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread ghe2001
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 --- Original Message --- On Sunday, October 22nd, 2023 at 11:29 PM, Jeffrey Walton wrote: > Whatever you come up with for , ICANN can add to the > > gTLD namespace; see https://icannwiki.org/Brand_TLD. > > > The DNS queries for

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread gene heskett
On 10/22/23 22:37, John Hasler wrote: Gene writes: This is generally true, Greg, and I get that, but every new version, which should just continue what works, doesn't cuz somebody moved a config file and last years fix doesn't work this year. And you can't ask for help when its not working. So

Re: how to force mounting an entry in fstab on boot?

2023-10-23 Thread hw
On Mon, 2023-10-23 at 16:53 +0200, Christoph Brinkhaus wrote: > Am Mon, Oct 23, 2023 at 04:17:11PM +0200 schrieb hw: > > Hi, > > > > I have an entry in the fstab to mount an NFS share via IPv6. For > > unknown reasons, the entry is being ignored on boot, so after booting, > > I have to log in as

Re: how to force mounting an entry in fstab on boot?

2023-10-23 Thread hw
On Mon, 2023-10-23 at 10:30 -0400, Greg Wooledge wrote: > On Mon, Oct 23, 2023 at 04:17:11PM +0200, hw wrote: > > I have an entry in the fstab to mount an NFS share via IPv6. For > > unknown reasons, the entry is being ignored on boot, so after booting, > > I have to log in as root and do a

[résolu]Re: orientation de l'écran

2023-10-23 Thread bm
Le 18/10/2023 à 10:01, elguero eric a écrit : Le mardi 17 octobre 2023 à 17:50:28 UTC+2, bm a écrit : Je viens d'essayer: la position ne change rien. je pense que ton problème a quand-même un rapport avec la détection de position de l'ordi. J'avais le même problème et j'avais trouvé cette

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread gene heskett
On 10/22/23 23:08, Stefan Monnier wrote: This is generally true, Greg, and I get that, but every new version, which should just continue what works, doesn't cuz somebody moved a config file and last years fix doesn't work this year. And you can't ask for help when its not working. So YOU have

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Greg Wooledge
On Mon, Oct 23, 2023 at 10:29:45AM -0400, tom kronmiller wrote: > On Mon, Oct 23, 2023 at 10:16 AM Jon Leonard wrote: > > > More specifically, fork() does not play nicely with stdio buffering. > > > > But the fork() should not be changing the address space of the calling > process. The

Re: how to force mounting an entry in fstab on boot?

2023-10-23 Thread Christoph Brinkhaus
Am Mon, Oct 23, 2023 at 04:17:11PM +0200 schrieb hw: > Hi, > > I have an entry in the fstab to mount an NFS share via IPv6. For > unknown reasons, the entry is being ignored on boot, so after booting, > I have to log in as root and do a 'mount -a' which mounts the share > without problems. > >

Re: how to force mounting an entry in fstab on boot?

2023-10-23 Thread Greg Wooledge
On Mon, Oct 23, 2023 at 04:17:11PM +0200, hw wrote: > I have an entry in the fstab to mount an NFS share via IPv6. For > unknown reasons, the entry is being ignored on boot, so after booting, > I have to log in as root and do a 'mount -a' which mounts the share > without problems. Do your IPv4

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread tom kronmiller
On Mon, Oct 23, 2023 at 10:16 AM Jon Leonard wrote: > More specifically, fork() does not play nicely with stdio buffering. > But the fork() should not be changing the address space of the calling process. The duplicated buffers in the child process might be an issue in general (they aren't in

how to force mounting an entry in fstab on boot?

2023-10-23 Thread hw
Hi, I have an entry in the fstab to mount an NFS share via IPv6. For unknown reasons, the entry is being ignored on boot, so after booting, I have to log in as root and do a 'mount -a' which mounts the share without problems. The entry in the fstab looks like this: [fd53::11]:/srv/example

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Jon Leonard
On Mon, Oct 23, 2023 at 09:31:11AM -0400, Greg Wooledge wrote: > On Mon, Oct 23, 2023 at 11:15:22AM +0200, Thomas Schmitt wrote: > > it helps to do > > fflush((stdout); > > after each printf(), or to run before the loop: > > setvbuf(stdout, NULL, _IONBF, 0); > > > > So it is obvious that the

Re: Shell-script variable name case [WAS: Re: can you parse and "tail" at once? (and if you can't why not?)]

2023-10-23 Thread Eduardo M KALINOWSKI
On 23/10/2023 10:56, David wrote: Hi, for your info, this convention is specified by POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html Which says: Environment variable names used by the utilities in the Shell and Utilities volume of POSIX.1-2017 consist

Shell-script variable name case [WAS: Re: can you parse and "tail" at once? (and if you can't why not?)]

2023-10-23 Thread David
On Mon, 23 Oct 2023 at 13:25, Eduardo M KALINOWSKI wrote: > On 22/10/2023 23:13, Greg Wooledge wrote: > > 2) All-caps variable name IFL. All-caps variable names are reserved, > >by convention, for environment variables (e.g. PATH) and special > >shell variables (e.g. IFS). > While I

Re: Default DNS lookup command?

2023-10-23 Thread David Wright
On Sun 22 Oct 2023 at 11:07:05 (+0700), Max Nikulin wrote: > On 21/10/2023 22:58, David Wright wrote: > > On Sat 21 Oct 2023 at 17:35:21 (+0200), Reiner Buehl wrote: > > > is there a DNS lookup command that is installed by default on any > > > Debian Bullseye or Bookworm install? > > > > nslookup

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Greg Wooledge
On Mon, Oct 23, 2023 at 11:15:22AM +0200, Thomas Schmitt wrote: > it helps to do > fflush((stdout); > after each printf(), or to run before the loop: > setvbuf(stdout, NULL, _IONBF, 0); > > So it is obvious that the usual output buffering of printf() causes the > repetitions of text. Yes, it

Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-23 Thread Eduardo M KALINOWSKI
On 22/10/2023 23:13, Greg Wooledge wrote: 2) All-caps variable name IFL. All-caps variable names are reserved, by convention, for environment variables (e.g. PATH) and special shell variables (e.g. IFS). While I don't disagree with the suggestion of using lower case for variables

Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-23 Thread Greg Wooledge
On Mon, Oct 23, 2023 at 01:21:43PM +0530, Pankaj Jangid wrote: > Another way to do it is, > > cat "${IFL}"| cut -d "/" -f7-|sed 's/.description//' > > because you already know the prefix, you can count the fields. So "-f7-" > i.e. 7 onwards. Then use sed to remove the extension. Whoops! I

Re: Full disk-encryption question

2023-10-23 Thread Marco M.
Am 23.10.2023 um 12:04:35 Uhr schrieb Michael Kjörling: > Encrypted /boot has been supported with GRUB 2 for a while. That > leaves only a minimal portion of GRUB in plaintext on storage. Although it is not default, so users should be aware that they need to do additional steps to encrypt /boot.

Re: Full disk-encryption question

2023-10-23 Thread Michael Kjörling
On 23 Oct 2023 13:59 +0200, from m...@dorfdsl.de (Marco M.): > Be aware that the boot loader and the /boot aren't encrypted by default > and they can be attacked (e.g. simply place a tainted kernel inside) by > anybody who has access to the harddisk. Encrypted /boot has been supported with GRUB 2

Re: Full disk-encryption question

2023-10-23 Thread Marco M.
Am 23.10.2023 um 12:53:14 Uhr schrieb lester29: > 1. Does an encryption key on the USB protect against rubber-hose > cryptanalysis? No, the LUKS headers are viewable. You need another layer around that supports hidden containers. > 2. Is it true that key on pendrive is more risky than

Re: Full disk-encryption question

2023-10-23 Thread Michael Kjörling
On 23 Oct 2023 12:53 +0200, from leste...@gazeta.pl (lester29): > 1. Does an encryption key on the USB protect against rubber-hose > cryptanalysis? I don't see how it would. Presumably you would have access to it; therefore that access could potentially be exploited through coercion or torture.

Full disk-encryption question

2023-10-23 Thread lester29
Hi I need to set up full disk encryption of the linux in my laptop. Questions: 1. Does an encryption key on the USB protect against rubber-hose cryptanalysis? 2. Is it true that key on pendrive is more risky than password because someone can steal the usb key and access data without the need

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread Christian Groessler
On 10/23/23 07:29, Jeffrey Walton wrote: On Mon, Oct 23, 2023 at 1:24 AM ghe2001 wrote: How about a /29 or so, named "here.", hosts named 2 or 3 letter abbreviations of what you call the computers, with unroutable IPs, DNS'ed in /etc/hosts (with shortcuts). Whatever you come up with for ,

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Thomas Schmitt
Hi, it helps to do fflush((stdout); after each printf(), or to run before the loop: setvbuf(stdout, NULL, _IONBF, 0); So it is obvious that the usual output buffering of printf() causes the repetitions of text. The loop does not do any extra cycles, as i could confirm by inserting a stderr

Re: 12.2: fork() causing getline() to repeat stdin endlessly

2023-10-23 Thread Thomas Schmitt
Hi, i can reproduce the problem with the given example after changing int main(int, char **) { to int main(int argc, char **argv) { in order to get it through the compiler. (There is also a memory leak about line_buf which does not matter now.) Not only the read offset of stdin seems to get

Re: can you parse and "tail" at once? (and if you can't why not?)

2023-10-23 Thread Pankaj Jangid
Albretch Mueller writes: > After generating a file with lines of text, I have to: > 1) parse some of those lines based on a pattern I know (no regex > necessary, just a FS path) > 2) once parsed from those lines I need the last n characters only > I am trying to use a one liner like: > cat

Re: Domain name to use on home networks; was: Bookworm:NetworkManager

2023-10-23 Thread Max Nikulin
On 23/10/2023 09:59, Stefan Monnier wrote: I can relate to Gene's feelings since there's been indeed some churn over the years, but `/etc/hosts` seems like an odd example because this one is among the most stable part of Unix/Linux. Gene's issue was with resolv.conf and he was refusing Greg's