ksh(1): '[' and ']' chars disturbing substitution?

2020-12-26 Thread Alessandro De Laurenzis
str#??}}" First 2 chars: -- foo bar blahblahblah [foo] $ It seems that the presence of '[' and ']' is somehow disturbing the substitution... Quite similar behavior in bash (the only difference is that the substitution works there when no chars are present in between

Re: ksh(1): '[' and ']' chars disturbing substitution?

2020-12-26 Thread Alessandro De Laurenzis
Hello Andreas, Got the point, thanks a lot for your feedback. Cheers On 26/12/2020 16:04, Andreas Kusalananda Kähäri wrote: On Sat, Dec 26, 2020 at 01:29:58PM +0100, Alessandro De Laurenzis wrote: Greetings, While extracting the first two characters from a string I noticed the following

Re: remove twm(1) from xenocara ?

2022-07-17 Thread Alessandro De Laurenzis
;In ports we have x11/ctwm which, for people looking at legacy stuff, is >superior ihmo. > >I'm suggesting here to drop twm from xenocara (ie xbase). > >Anyone willing to keep it around is welcome to submit a port for it. > >ok ? >-- >Matthieu Herrb > -- Alessandro De Laurenzis

Re: ucc(4): consumer control keyboard device driver

2021-08-21 Thread Alessandro De Laurenzis
buf[len - 1] |= 0x80; + + s = spltty(); + wskbd_rawinput(sc->sc_wskbddev, buf, len); + splx(s); +} + +int +ucc_setbits(u_char *data, int len, u_int *bit) +{ + int i, j; + + for (i = 0; i < len; i++) { + if (data[i] == 0) +

fortune(6): Veni, vidi, vici

2021-08-23 Thread Alessandro De Laurenzis
order warps the meaning. Please consider the attached diff. All the best [1] https://en.wikipedia.org/wiki/Veni,_vidi,_vici -- Alessandro De Laurenzis [mailto:jus...@atlantide.mooo.com] Web: http://www.atlantide.mooo.com LinkedIn: http://it.linkedin.com/in/delaurenzis --- /usr/src/games/fo

Non-statically compiled utilities in /sbin

2021-11-13 Thread Alessandro De Laurenzis
statically compiled and therefore do not depend on any -system libraries to run. +Most of these programs are statically compiled and therefore do not depend +on any system libraries to run. .It /tmp/ Temporary files that are .Em not -- Alessandro De Laurenzis [mailto:jus...@atlantide.mooo.com] Web

Re: Non-statically compiled utilities in /sbin

2021-11-14 Thread Alessandro De Laurenzis
static for NFS-over-IPsec that might mount the libraries after /usr. The benefit of linking iked dynamic outweighs the historic reason, eg. to get full address space randomization and to benefit from libcrypto updates, so we turn it into a dynamic binary. OK deraadt@ naddy@ Alessandro De Lauren

cwm - vtile and htile functions not compatible with group paradigm?

2019-08-11 Thread Alessandro DE LAURENZIS
y = area.y; h = area.h / n; w = area.w - mw; - TAILQ_FOREACH(ci, &gc->clientq, group_entry) { + TAILQ_FOREACH(ci, &gc->clientq, entry) { if (ci->flags & CLIENT_HIDDEN || ci->flags & CLIENT_IGNORE

games/fortune translation fix

2019-02-02 Thread Alessandro DE LAURENZIS
for all N+1 floors. QED. % -Ad astra per aspera. (To the stars by aspiration.) +Ad astra per aspera. (Through adversity to the stars.) % Adde parvum parvo manus acervus erit. [Add little to little and there will be a big pile.] [...] Just my 2 cents. [1] https://en.wikipedia.org/wiki/Per_

Re: ksh: add support for HISTCONTROL ignorespace & ignoredups

2017-08-30 Thread Alessandro DE LAURENZIS
E", V_HISTFILE }, > { "HISTSIZE", V_HISTSIZE }, > #endif /* HISTORY */ >@@ -993,6 +994,9 @@ setspec(struct tbl *vp) > } > break; > #ifdef HISTORY >+ case V_HISTCONTROL: >+ sethistcontrol(str_val(vp)); >+ break; > case V_HISTSIZE: > vp->flag &= ~SPECIAL; > sethistsize((int) intval(vp)); >@@ -1086,6 +1090,11 @@ unsetspec(struct tbl *vp) > case V_MAILPATH: > mpset(NULL); > break; >+#ifdef HISTORY >+ case V_HISTCONTROL: >+ sethistcontrol(NULL); >+ break; >+#endif > case V_LINENO: > case V_MAILCHECK: /* at&t ksh leaves previous value in place */ > case V_RANDOM: > >-- >jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 >E7EE -- Alessandro DE LAURENZIS [jus...@atlantide.t28.net]

ksh: allow leading space stripping with <<- redirection

2015-09-12 Thread Alessandro DE LAURENZIS
it could return true for characters different from spaces and tabs when locales other than C are used); if not, a simple or operator between '\t' and ' ' could be used instead. All the best -- Alessandro DE LAURENZIS [mailto:just22@gmail.com] LinkedIn: http://it.linkedin.com/in/delaurenzis

Re: ksh: allow leading space stripping with <<- redirection

2015-09-13 Thread Alessandro DE LAURENZIS
Hello Philip, On Sun 13/09/2015 09:32, Philip Guenther wrote: [...] > Nope. The just-strip-tabs behavior is straight from the standard. To > quote SUSv4 XCU section 2.7.4 paragraph 5: [...] Got it, thanks for your feedback. Cheers -- Alessandro DE LAURENZIS [mailto:just22@gma

Re: does anoybody use ul?

2015-10-23 Thread Alessandro DE LAURENZIS
inst the removal, this is only to say that the command actually works. Cheers [0]: http://unix.stackexchange.com/questions/3044/how-to-use-the-ul-command-line-utility -- Alessandro DE LAURENZIS [mailto:just22@gmail.com] LinkedIn: http://it.linkedin.com/in/delaurenzis

[patch] Fix tput(1) capability's needed argument count

2015-11-21 Thread Alessandro DE LAURENZIS
break; default: break; } } } - arg_need = MAXIMUM(arg_need, popcount); if (arg_need > 9) errx(2, "too many arguments (%d) for capability `%s'", arg_need, cap); [snip] [1] http://marc.info/?l=openbsd-misc&m=144800414402238&w=2 -- Alessandro DE LAURENZIS [mailto:just22@gmail.com] LinkedIn: http://it.linkedin.com/in/delaurenzis

Re: [patch] Fix tput(1) capability's needed argument count

2015-12-24 Thread Alessandro DE LAURENZIS
Dear tech@ readers, On 11/21/15 13:20, Alessandro DE LAURENZIS wrote: > Dear tech@, > > This is an attempt to solve a problem I previously reported [1] to > misc@ (without receiving any feedback, so far). [...] > [1] http://marc.info/?l=openbsd-misc&m=144800414402238&w=

Re: [patch] Fix tput(1) capability's needed argument count

2015-12-25 Thread Alessandro DE LAURENZIS
Dear tech@ readers, On Thu 24/12/2015 15:58, Alessandro DE LAURENZIS wrote: [...] > my second attempt... I understand that the previous patch was wrong. > > After digging into terminfo(5) man page, I think the problem could be > related to the if...then...else structures (%?...

WOL support for bge driver

2015-05-17 Thread Alessandro DE LAURENZIS
ge.4.origSun May 17 19:20:38 2015 +++ ./bge.4 Sun May 17 19:23:23 2015 @@ -114,6 +114,15 @@ .Pp The .Nm +driver additionally supports Wake on LAN (WoL). +See +.Xr arp 8 +and +.Xr ifconfig 8 +for more details. +.Pp +The +.Nm driver supports the following media types: .Bl -tag -width 1000baseSX .It Cm autoselect -- Alessandro DE LAURENZIS [mailto:just22@gmail.com] LinkedIn: http://it.linkedin.com/in/delaurenzis