Re: set -o emacs ; stty -echo

2022-07-20 Thread Andrew Cagney
On Wed, 20 Jul 2022 at 01:52, Robert Elz wrote: > > I will take a look, but I suspect you're seeing the interaction > between what editline (libedit) wants, and its settings, and how > the shell interacts with it to preserve sane settings for other > commands that also use the terminao. Thanks!

set -o emacs ; stty -echo

2022-07-19 Thread Andrew Cagney
should, like for bash, this put the terminal into -echo mode? arm64$ echo $SHELL /bin/sh arm64$ set -o emacs ; stty -echo arm64$ pwd /home/cagney other combinations are equally puzzling. for instance: set -o emacs ; stty -echo ; set +o emacs doesn't flip to -echo mode either

Re: don't bother to use NetBSD Git repos for anything but testing (was: cvs better than git?)

2020-06-19 Thread Andrew Cagney
On Thu, 18 Jun 2020 at 15:24, Greg A. Woods wrote: > At Thu, 18 Jun 2020 13:00:50 -0400, Andrew Cagney > wrote: > Subject: Re: cvs better than git? > > > > On Wed, 17 Jun 2020 at 23:23, Mayuresh wrote: > > > > > > On Wed, Jun 17, 2020 at 03:42:44PM +053

Re: cvs better than git?

2020-06-18 Thread Andrew Cagney
On Wed, 17 Jun 2020 at 23:23, Mayuresh wrote: > > On Wed, Jun 17, 2020 at 03:42:44PM +0530, Mayuresh wrote: > > For pkgsrc I prefer the git mirror, as I don't have to push anything > > anyway and a few hours of latency doesn't matter to me. > > Don't know whether it's relevant to say on this

Re: Postfix and local mail delivery - still relevant in 2020?

2020-06-08 Thread Andrew Cagney
On Sat, 6 Jun 2020 at 11:54, Sad Clouds wrote: > > I've been wondering - why have Postfix in the base system and why have > it enabled by default? > > Most people are not interested in running their own mail server. In > this case, what is the value of having Postfix just to deliver daily(5) >

Re: portable file touched during boot

2020-05-21 Thread Andrew Cagney
On Thu, 21 May 2020 at 14:18, Martin Neitzel wrote: > > > I'm trying to hack up a Make rule that's only run once after a reboot > > by having it depend on a file touched during boot. > > I find plenty of candidates in /var/run: > > % ls -lrt /var/run > total 98 > drwxrwx--- 2 root operator

portable file touched during boot

2020-05-21 Thread Andrew Cagney
I'm trying to hack up a Make rule that's only run once after a reboot by having it depend on a file touched during boot. Something like foo: /proc/uptime do stuff touch foo On Linux, /proc/uptime seems promising - it has the boot time (other files such as /proc/1 seem to have

Re: Alternative DVCS to git: hg?

2019-04-18 Thread Andrew Cagney
On Thu, 18 Apr 2019 at 16:04, Sad Clouds wrote: > > On Thu, 18 Apr 2019 12:29:32 -0400 > Andrew Cagney wrote: > > > When two fully tested commits hit the repo at the same time, and the > > result is broken, who do I blame? Subversion? We can hardly wave a > > f

Re: Alternative DVCS to git: hg?

2019-04-18 Thread Andrew Cagney
On Thu, 18 Apr 2019 at 15:52, Johnny Billquist wrote: > Why do you insist on the "at the same time"? It can be at any time, and > the problem is the same. there are various tricks to reduce the window; but yes > > With ACID, since the second developer's change gets rejected, they can > > be

Re: Alternative DVCS to git: hg?

2019-04-18 Thread Andrew Cagney
On Thu, 18 Apr 2019 at 11:26, Martin Husemann wrote: > > On Thu, Apr 18, 2019 at 11:18:06AM -0400, Andrew Cagney wrote: > > So again, which commit broke the branch? With subversion, I can't > > answer that question. > > I am not sure I understand. svn log on the bran

Re: Alternative DVCS to git: hg?

2019-04-18 Thread Andrew Cagney
> Subversion fails on two counts: Subversion fails on 3 counts (for those keeping track, its so long I forgot one): > - it isn't ACID (I'm told that's the correct DB term) > In subversion parallel pushes are magically merged, maybe. For > instance: developer #1's deletes a .h macro and

Re: Alternative DVCS to git: hg?

2019-04-18 Thread Andrew Cagney
> > The "work around" is to somehow "encourage" all the developers to go > > through something like: > > > > - test > > - push > > - pull > > oh, "expletive", > > - hack > > - push > > - pull > > oh, "EXPLETIVE" > > > > > > sure, like that will work ... > > More normal would be: > > hack >

Re: Alternative DVCS to git: hg?

2019-04-17 Thread Andrew Cagney
On Wed, 17 Apr 2019 at 06:33, Johnny Billquist wrote: > > On 2019-04-17 10:02, Andreas Krey wrote: > > On Wed, 17 Apr 2019 09:10:28 +, Johnny Billquist wrote: > > ... > >> Are you saying that subversion would interleave two commits? Commits in > >> subversion are supposed to be atomic. And

Re: Alternative DVCS to git: hg?

2019-04-16 Thread Andrew Cagney
On Tue, 16 Apr 2019 at 15:05, Sad Clouds wrote: > > Does it actually need to be distributed? If no, then what's wrong with > Subversion? Personally, I can't stand Git. Subversion fails on two counts: - it isn't ACID (I'm told that's the correct DB term) In subversion parallel pushes are

posix_spawn(), openpty(), and login_tty()

2019-04-15 Thread Andrew Cagney
Python 3.8 adds a shiny new toy - a binding to posix_spawn(). I figured I'd try it as a more robust way of creating a child process attached to a terminal. While I happened to use Python, this is really about NetBSD (and even apply to other code bases such as GLIBC). Forgive my pseudo Python/C

how do I automate an install of a NetBSD QEMU guest on a linux host?

2019-02-20 Thread Andrew Cagney
(while my preference is for amd64 or i386 as they are hopefully more efficient, I probably don't care) For instance, some sort of magic long virt-install command that feeds necessary options directly to sysinst. Searching seems to either come up with: - do it by hand using the console - use

Re: dhclient fails for iwn0 when no security

2016-06-18 Thread Andrew Cagney
On 17 June 2016 at 15:11, John D. Baker wrote: >> This might be a case of a network using 40MHz wide channel. I have >> personally experienced the same. it's faster for 802.11n, but it drops >> legacy support for 802.11b/g, which uses 20MHz wide channels. > > I think this

dhclient fails for iwn0 when no security

2016-06-16 Thread Andrew Cagney
NetBSD 7.0.1 fresh install and the iwn0 device (forgive typos): iwn0 at pci1 dev 0 function 0: vendor 0x8086 product 0x0091 (rev. 0x34) iwn0: interrupting at ioapic0 pin 16 iwn0: MIMO 2T2R, MoW, address ... iwn0: 11a rates: I'm finding that when I'm connecting to a public network (such as

Re: wireless WPA disconnection issues

2016-03-14 Thread Andrew Cagney
On 7 March 2016 at 12:32, Riccardo Mottola wrote: > Hi, > > I have an issue when trying to remain connected to a WPA network. > I use wpa_supplicant and dhcpcd (I suppose that's the only way?). Connection > happens fine, but after a certain while.. sometimes minutes,

Re: Reformatting little USB-harddisks

2016-03-08 Thread Andrew Cagney
On 8 March 2016 at 11:13, herbert langhans wrote: > Hi List, > you sure know these little external USB-harddisks, often used for laptops > or basic backups. Like WD-Passport and Seagate Expansion and whatever > they name them. > > They come FAT formatted, right? Has anyone

wpa_supplicant rc.conf config silently failing

2016-03-04 Thread Andrew Cagney
Hi, I was enabling wpa supplcant so added these lines: wpa_supplicant=YES wpa_supplicant_flags="-c /etc/wpa_supplicant.conf -i run0" and tested it using: /etc/rc.d/wpa_supplicant start and all seemed to work (well, after I fixed my .conf file :-), but then I rebooted:

Re: Ways to report trace when boot panics [Was NetBSD 7.0 i386 panic during boot]

2015-10-13 Thread Andrew Cagney
On 12 October 2015 at 10:32, Robert Elz wrote: > Long long ago I did an implementation of config code (more or less a console) > for a device that had nothing but ethernet. For that (and to avoid the > issue that would arise here, of needing specialised client code) I used