Re: printf(1), sh(1), POSIX.2 and octal escape sequences

2023-06-30 Thread Martin Neitzel
KRE> It depends upon the usage. But if you're processing escapes, you KRE> need to also process \\ to mean a literal '\' of course, [...] Not necessarily -- '\134' would be good enough :-) Just joking, of course. The weekend is nigh.

Re: vi(1) one line crasher

2023-06-22 Thread Martin Neitzel
noredrawtags="tags" noexpandtab magic remap term="screen" directory="/tmp" fileencoding="UTF-8" inputencoding="UTF-8" matchchars="()[]{}<>" paragraphs="IPLPPPQPP LIpplpipbp" recdir="/var/tmp/vi.recover" sections="NHSHH HUnhsh" shell="/usr/pkg/bin/tcsh" shellmeta="~{[*?$`'"\" Martin Neitzel

Re: vi(1) one line crasher

2023-06-22 Thread Martin Neitzel
h netbsd-host -> vi NetBSD 8.2_STABLE (GENERIC), amd64, #3: Sat May 2 15:05:24 CEST 2020 /usr/bin/vi, :ve yields: Version (1.81.6-2013-11-20nb4) and ts=8 Martin Neitzel

Re: jot: producing too much output?

2023-01-09 Thread Martin Neitzel
> | The name jot derives in part from iota, a function in APL. > > Maybe somebody(tm) should look that up. That's certainly the case. The other two tools of Kunze's tool bundle derive from APL, too: rs(1) and lam(1) ("reshape" and "laminate"). Martin (AP

Re: tcsh as csh default

2022-10-21 Thread Martin Neitzel
th that, I don't care much about any of the other tcsh extras, such as spelling correction. Well, tcsh's command completion is certainly nice, too, but I wouldn't kill for that.) So yes: another vote to "go tcsh!" in base. Martin Neitzel

Re: to bump or note to bump

2022-04-06 Thread Martin Neitzel
Hi Brett, > So, the point of all this blather is even though there have been no > interface changes as a result of my work there is the potential for a > significant visual change. Should I mark this with a libcurses major > bump? I don't think it necessary but I am putting it out there for > dis

Re: Trouble setting LC_CTYPE in a pared down chroot

2021-10-19 Thread Martin Neitzel
e(1) gives you all effective values, i.e. after applying defaults (system and LANG), explicit settings, and an LC_ALL overrule. Martin Neitzel

Re: Anyone still using YP support on NetBSD?

2021-09-24 Thread Martin Neitzel
> Anyone? Yes. While we are at it: I recently noticed that the NetBSD Guide fails to even mention YP/NIS in its "NFS" chapter. http://www.netbsd.org/docs/guide/en/chap-net-services.html#chap-net-services-nfs Martin Neitzel

Re: Weekday abbreviations in output of cal(1)

2020-07-02 Thread Martin Neitzel
Hi Wolfgang, >> "first $WEEKDAY of next month". I am at a loss how to do this > $ date -d "$(date -d '+1 month' '+%m/01/%C%y') sat" > Sat Aug 1 00:00:00 CEST 2020 Nifty -- I would probably never have solved this. Thanks! Martin Neitzel

Re: Weekday abbreviations in output of cal(1)

2020-07-02 Thread Martin Neitzel
9 10 > do > date -d "+$i month 1 thu" > done will not fail immediately but more and more blatantly as we progress into the month. Martin Neitzel PS: The () in the date expressions above are just to illustrate possible parsings. The actual date command treats "(stuff)" as a comment.

Re: Weekday abbreviations in output of cal(1)

2020-07-01 Thread Martin Neitzel
f getting this oh-so-dreadful ambiguity in the five initial letters resolved :-) Martin Neitzel PS: MUCH more useful to me is a cal(1) option to put Mondays first. (I use cal(1) daily in the office.) With the NetBSD cal(1) we can even pull any weekday in front. For script

Re: /bin/sh redirect without command failure mode

2018-11-24 Thread Martin Neitzel
't meddle with ownerships and permissions, and a running daemon can continue to write to the very same file descriptor. Martin Neitzel

Re: killing subshells in /bin/sh scripts

2017-06-26 Thread Martin Neitzel
actually *is* POSIX (and always has been, for both the kill(1) utility and the kill() function)). In any case: very worthwhile tutorial -- thanks! Martin Neitzel

Re: Suggestion: add a "no-stemming" option to apropos(1)?

2017-06-08 Thread Martin Neitzel
PG> Don't get me wrong, I love apropos(1). But... PG> I'm continually bitten by the "stemming" that occurs. [...] So am I. I completely switched over from "man -k" to an alias effecting "apropos -l" ("legacy"-mode): % apropos -l lfs lfs_segwait(2) - wait until a segment is written lfs_m

Re: Adding ftp to master.passwd and group

2017-01-25 Thread Martin Neitzel
Hi Roy, > * We ship a FTP server in the base system. > * We supply /var/spool/ftp as a recommened skeletion for anon FTP. > * We DO NOT supply a ftp user in master.passwd (or group). > > Is there a reason for this? Surely we just need to supply a FTP user to > complete the easy setup of a

Re: Next steps for /bin/sh

2016-02-27 Thread Martin Neitzel
t before the "echo". > So, should we change it?If so, I'll look into what code needs altering. Yepp, please. Martin Neitzel