[dev] Re: tabs

2014-02-17 Thread Thorsten Glaser
Michael Hauser dixit: >the convenience would be that I don't need to memorize 2 separate ways >of handling windows. As tabs are really just another way of presenting >windows. I’m using “nested” tabs a lot. For example, on the 12″ laptop I’m typing this eMail right now, this is a pine session on

Re: [dev] Announcing sinit - the suckless init

2014-02-14 Thread Thorsten Glaser
Sylvain BERTRAND dixit: >Just to let you know, I have a little initramfs project. The init >process is hardcoded directly on the linux syscalls. On Linux, syscall numbers, argument number, order and size, etc. differ by architecture. bye, //mirabilos -- Ach, mach doch was du willst, du hast do

[dev] Re: Reasonable Makefiles

2014-02-11 Thread Thorsten Glaser
“Re: *** GMX Spamverdacht *** [dev] Reasonable Makefiles”. Honestly! Markus Wichmann dixit: >A typical Makefile of mine looks like this: Ugh, a horrid GNUmakefile… I normally write: PROG= foo .include Or, if the sources are more than just foo.c, and if the manpage is in section 8

Re: [dev] Announcing sinit - the suckless init

2014-02-06 Thread Thorsten Glaser
Eckehard Berns dixit: >I actually use ctrl-alt-del and alt-up from time to time :) But I could >live without it. Hmm, I actually forgot. Do the BSDs handle ctrl-alt-del >in any way on x86? Yes. Not just on x86. It sends SIGUSR1 to pid 1. bye, //mirabilos -- > Hi, does anyone sell openbsd sticke

Re: [dev] Announcing sinit - the suckless init

2014-02-06 Thread Thorsten Glaser
Eckehard Berns dixit: >Also, would it be worth it to deal with x86 Linux's ctrl-alt-del? It would >pull in OS specific code, and maybe people don't care for ctrl-alt-del >on the console, since everybody lives in X anyway. Hm, isn’t Ctrl-Alt-Backspace+Ctrl-Alt-Del (when not using xdm) or Ctrl-Alt-

Re: [dev] ncurses or ...

2014-01-30 Thread Thorsten Glaser
Lee Fallat dixit: >editor. I think some can guess where I'm coming from... Message-ID: ^^ Not hard to guess. Go die. Elsewhere. And quiet. bye, //mirabilos -- > emacs als auch vi zum Kotzen finde (joe rules) und pine

Re: [dev] Mailinglists

2014-01-21 Thread Thorsten Glaser
Alexander Huemer dixit: >> What client do you use for newsgroups? […] >I totally agree. Most Client applications for NNTP suck. Somebody^{(tm)} >should write a better alternative. pine rocks, IMHO. My problem is rather that I’ve got no access² to a working “regular” usenet server any more, only

[dev] Re: 8-bit transparency in the C locale vs. UTF-8 support

2013-12-25 Thread Thorsten Glaser
Rich Felker dixit: >> >Wouldn't a 16-bit wchar_t be non-standard-conform when using a UTF-8 >> >locale? >> >> Nope. UTF-8 is just an encoding for Unicode, and as long as I take >> care to #define __STDC_ISO_10646__ 29L (and no later date) this >> is perfectly permissible. >This is only a poss

Re: 8-bit transparency in the C locale vs. UTF-8 support

2013-12-25 Thread Thorsten Glaser
Silvan Jegen dixit: >Wouldn't a 16-bit wchar_t be non-standard-conform when using a UTF-8 >locale? Nope. UTF-8 is just an encoding for Unicode, and as long as I take care to #define __STDC_ISO_10646__ 29L (and no later date) this is perfectly permissible. (And please do not language-lawyer m

8-bit transparency in the C locale vs. UTF-8 support (was Re: [dev] [sbase][RFC] Add a simplistic version of tr)

2013-12-24 Thread Thorsten Glaser
Strake dixit: >Use wchar.h functions and a sane libc, e.g. musl, which has a pure >UTF-8 C locale, which ISO C explicitly allows [1]. > >The 8-bit clarity what POSIX wants [1] seems nonsense to me, as one >can use byte functions for that, but I may be wrong. ^^ Not always, see

Re: [dev] strlcpy and strlcat

2013-12-21 Thread Thorsten Glaser
Daniel Bryan dixit: >I'd like to know what the opinion here is of these functions. I've so Not using them in this time and age is gross negligence. Using strcpy, strcat and sprintf is even more; using strncpy is minor negligence, but _strncat_ is positively dangerous. So, yes, by all means, use

Re: [dev][announce] Optimizing C compiler & c++ compiler/runtime

2013-12-20 Thread Thorsten Glaser
Bobby Powers dixit: >I'm surprised no one has mentioned the Plan 9 C compiler. There seems Hm, does it support something other than ECOFF output now? The assembler part is also very foreign… I’ve also got one more: nwcc (Nils Weller’s C compiler). bye, //mirabilos -- In traditional syntax ' i

Re: [dev] Optimizing C compiler & c++ compiler/runtime

2013-12-20 Thread Thorsten Glaser
Paul Onyschuk dixit: >(those can be copied from Heirloom or from older version of Groff - Or my version from AT&T nroff, which got bugfixes in the else-part of GNU groff specifics. I’ve got them in CVS as src/share/tmac/ (not /usr/lib/ but /usr/share/ as per the standard modern-BSD filesystem hie

Re: [dev] Optimizing C compiler & c++ compiler/runtime

2013-12-20 Thread Thorsten Glaser
(Wondering about the topic, no idea why one would want to use C++ anyway… but… *shrug*) Sylvain BERTRAND dixit: >> This is valid question on other hand e.g. base OpenBSD is C++ free for >> some time AFAIK (after the removal of groff). Idea of minimal set of Same for MirBSD (removal of GNU groff

Re: [dev] wswsh: a mksh web framework

2013-12-14 Thread Thorsten Glaser
Paul Onyschuk dixit: >With mdocml [1] you get nice HTML output for free, because it Actually, no output at all, since it’s not a full *roff processor, and I (have to) use a compatibility leader (between AT&T nroff, GNU groff with UCB macros, and GNU groff with GNU macros) which also implements le

Re: [dev] wswsh: a mksh web framework

2013-12-13 Thread Thorsten Glaser
Chris Down dixit: >If masking files with directories is considered "clean", then I don't >want to live on this planet any more. >Just don't do it. Agreed. I don’t put *.htm files into subdirectories at all; the other MirWebseite setup does it as it’s got some more hierarchically structured conte

Re: [dev] wswsh: a mksh web framework

2013-12-12 Thread Thorsten Glaser
YpN dixit: >I wrote a shell script using mksh, which generates websites. You need to write Just for completeness: I’ve written MirWebseite as a non-generic thing to generate static XHTML websites, too, and even got a second only slightly related installation (which, ofc, by now deviates quite a b

Re: [dev] Bringing together OS'es terminals and their codepages

2013-12-03 Thread Thorsten Glaser
Carlos Torres dixit: >here we go again... Sure… googlemail user ;) >should they ban people that use fortune in their signatures too? You’d be amazed to hear that I have a collection of individual sig files and select one manually when I don’t want to use the default one, which I rotate occasion

Re: [dev] Bringing together OS'es terminals and their codepages

2013-12-03 Thread Thorsten Glaser
patrick295767 patrick295767 dixit: >I think about various possible POSIX and non-POSIX platforms, which >allow compiling with gcc or g++: You missed MirBSD, which incidentally is UTF-8 only (with the known issue that you need to run “script -lns” or GNU screen on the text console, but for Unicode

Re: [dev] [sbase][RFC] Add a simplistic version of tr

2013-11-30 Thread Thorsten Glaser
Silvan Jegen dixit: >That sounds reasonable but requires that we convert UTF-8 to UTF-32 >which should not be strictly necessary when we only map one UTF-8 value >to another. Arrgh, no. UTF-8 and UTF-32/UCS-4 are encodings of numerical Unicode codepoints. When working with text documents, you alw

Re: [dev] [sbase][RFC] Add a simplistic version of tr

2013-11-28 Thread Thorsten Glaser
Silvan Jegen dixit: >If I understand correctly you would use mmap to allocate a sparse >memory area into which we could then directly index (either using >UTF-8 or UTF-32 indices), right? Since mmap needs a file descriptor I think that wouldn’t help much. >Sadly, I do not follow. I recognize tha

Re: [dev] [sbase][RFC] Add a simplistic version of tr

2013-11-26 Thread Thorsten Glaser
Strake dixit: >On 26/11/2013, Silvan Jegen wrote: >> If you you would rather not take this version, what approach would >> you take for the character set mapping when using UTF-8? > >On Linux, one can easily make a sparse array with 1-page granularity >with mmap, and so simply use a (wchar_t [])

Re: [dev] [st] why is Glyph.fg, Glyph.bg long?

2013-11-14 Thread Thorsten Glaser
Roberto E. Vargas Caballero dixit: >On Wed, Nov 13, 2013 at 01:03:47PM +0000, Thorsten Glaser wrote: >> Roberto E. Vargas Caballero dixit: >> >> >long, because long is at least 32 bits for sure, but int can be only 16 >> >> On POSIX, int is a minimum 32 bit d

Re: [dev] [st] why is Glyph.fg, Glyph.bg long?

2013-11-13 Thread Thorsten Glaser
Roberto E. Vargas Caballero dixit: >long, because long is at least 32 bits for sure, but int can be only 16 On POSIX, int is a minimum 32 bit data type. bye, //mirabilos -- „Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund, mksh auf jedem System zu installieren.“ -- XTaran auf

Re: [dev] Mailing list behavior

2013-11-07 Thread Thorsten Glaser
hiro dixit: >tldr > >On 11/6/13, Alexander Huemer wrote: […] Can we please ban Googlemail from this mailing list? (Funnily enough, recently I’ve started looking at From headers more, and, sure enough, Googlemail users are the biggest average idiots on other mailing lists as well.) bye, //mirab

Re: [dev] IRC on Freenode

2013-11-02 Thread Thorsten Glaser
it even worse. Dmitrij D. Czarkoff dixit: >Thorsten Glaser said: >> (The frontend needs not be graphical, of course.) > >Why? Erm… because graphical stuff sucks? Because I run all my stuff in GNU screen (sure, in an uxterm, but that’s just to get the font and Unicode support with en

Re: [dev] IRC on Free node

2013-11-02 Thread Thorsten Glaser
ludovic samek dixit: >encrypted actually? Do you know some dev lists where they use >encryption? I’m carrying the Secure List Server patch for mailman on the installations we use at work. (Reminds me to get the time to update and polish this and upload to Debian proper…) http://non-gnu.uvt.nl/ma

Re: [dev] IRC on Free node

2013-11-02 Thread Thorsten Glaser
Chris Down dixit: >On 2013-11-02 11:13, Dmitrij D. Czarkoff wrote: >> Gmail's webmail doesn't allow to tune quoting & attribution in a >> sensible manner, so repeating this every time doesn't make much sense. Meh, until it’s beaten into peoples’ brains… ;-) >Surely the answer to that is to not u

Re: [dev] IRC on Free node

2013-11-01 Thread Thorsten Glaser
patrick295767 patrick295767 dixit: >Security is not perfect. A bouncer is fine, or helps. You just want to flame, I’d guess. >The idea of protecting your data makes senses. Security is an >important topic. Says the Googlemail user. Oh, the irony. >2013/11/2 Ryan O�Hara : […] >> On 11/1/13, pat

[OT] eMail (was Re: [dev] Some thoughts about XML)

2013-10-23 Thread Thorsten Glaser
koneu dixit: >Oh please tell me a good alternative free and reliable mail service. sendmail? postfix? There’s a lot of stuff around, and you can just run them for free on your own server. Easy to set up, too. (This is really stupid. Besides, you could just search around for unix shell accounts o

Re: [dev] Some thoughts about XML

2013-10-23 Thread Thorsten Glaser
hiro dixit: >the format of ini files are a problem for you?? Multiple question marks, he said, are a sure sign of a diseased mind. (Or something like that. It’s been some time since I last read him.) >On 10/23/13, Thorsten Glaser wrote: Oh great, TOFU! Please read and honou

Re: [dev] misc projects

2013-10-23 Thread Thorsten Glaser
Sylvain BERTRAND dixit: >> -Mdist normalises all uid:gid to 0:0 (and some other things that >Strange, I though this feature was available with basic CPIO utils. No, it’s not, it’s implementation-specific extension. But then, paxtar is a BSD-licenced and pretty compact implementation, so it shou

Re: [dev] misc projects

2013-10-23 Thread Thorsten Glaser
Sylvain BERTRAND dixit: >and use CPIO text description to avoid being root to create the You can use paxmirabilis/MirCPIO for that (it’s packaged as “pax” in Debian wheezy and newer, in case you wonder). Example: find * | sort | paxcpio -oC512 -Hsv4cpio -Mdist | xz -2e >initrd -Mdist normalises

Re: [dev] Some thoughts about XML

2013-10-22 Thread Thorsten Glaser
Mihail Zenkov dixit: >It not mention good xml alternative: TOML Thank gods the time of Windows 3.x *.ini files is long gone. bye, //mirabilos -- Beware of ritual lest you forget the meaning behind it. yeah but it means if you really care about something, don't ritualise it, or you will lo

Re: [dev] Some thoughts about XML

2013-10-19 Thread Thorsten Glaser
Evan Buswell dixit: >like you're gonna put UTF-8 parsing into cat. cat is just a sendfile, it’s not doing anything with the content. On the other hand, for a data exchange format, some measure of data types is a commodity. JSON is not binary-safe, true, but the Unix/Plan 9 way doesn’t need it to

Re: [dev] Some thoughts about XML

2013-10-19 Thread Thorsten Glaser
Evan Buswell dixit: >playing with that adds symbolic references and uses binary instead of >utf-8 strings); RST is better for structured text---though I'm not Oh yeah, let’s all do binary now instead of passing around plaintext! Wait. No! Pointing out Unix/Plan 9 way works just fine, //mirabilo

Re: [dev] Some thoughts about XML

2013-10-18 Thread Thorsten Glaser
Szymon Olewniczak dixit: >> s/HTML/XML+XSLT/g is quite a revolution. >But it's something whitch I can use in my application straight away >without forcing user to change their web browsers. But XSLT is a joke. Have you *seen* the lengths people go through to actually *do* anything in it? It may

Re: [dev] Some thoughts about XML

2013-10-18 Thread Thorsten Glaser
Chris Down dixit: >I don't even know what to say to this... Must be the full moon. First 20h “liking” kdbus, now this… bye, //mirabilos -- This space for rent.

Re: [dev] Some thoughts about XML

2013-10-18 Thread Thorsten Glaser
Szymon Olewniczak dixit: >Pages writen in XML has readable source No. Much like sendmail.cf, XML is a binary/object format and ought to be treated as such. bye, //mirabilos -- Sometimes they [people] care too much: pretty printers [and syntax highligh- ting, d.A.] mechanically produce pretty ou

Re: [dev] [sbase] Command list

2013-10-18 Thread Thorsten Glaser
Truls Becken dixit: >bc dc bc can be done on top of dc; BSD does that (the dc uses OpenSSL for arbitrary-precision numbers). >killall I object, killall should never, ever, be used. (Try it on a Solaris system, for example.) >On 2013-10-18, at 12:29, sin wrote: >> make: Do we really need this

Re: [dev] [sbase] Command list

2013-10-17 Thread Thorsten Glaser
Alex Pilon dixit: >I know the trick. I used base64 for that, not uuencode. Don't they >both have the same overhead, other than uuencode's header? Yes but uuencode is more portable… e.g. the Linux “base64” tool is rarely installed anywhere and is extremely picky about the formatting of its input;

Re: [dev] [sbase] Command list

2013-10-17 Thread Thorsten Glaser
Alex Pilon dixit: >Don't od's and hexdump's functionality overlap? Yes, they (and hd) are normally one binary. >Do we still really need uuencode and uudecode? Yes! I often use them, in combination with GNU screen, to copy/paste files(!) from one tab to the other, when using other methods (such

Re: [dev] [announce] Starch Linux is bootable and self-hosting

2013-10-05 Thread Thorsten Glaser
Strake dixit: >> “HTTP/1.1 200 Schön”?! > >What, is this improper usage? No, just funny. >Yes, sorry, I missed that it bound to IPv4 alone by default. Should >work now. Thanks. Nope – maybe it’s firewalled (looks like pf block drop)? tg@blau:~ $ nc -v6 starchlinux.org 80 nc: connect to starchl

Re: [dev] [announce] Starch Linux is bootable and self-hosting

2013-10-05 Thread Thorsten Glaser
Strake dixit: >http://starchlinux.org/ “HTTP/1.1 200 Schön”?! One rather important thing: starchlinux.org has got an RR but the httpd does not listen on IP, only on Legacy IP. Please fix that, because otherwise, a good part of the ’net can’t ac‐ cess your site. bye, //mirabilos -- [ Natur

Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

2013-10-04 Thread Thorsten Glaser
Raphaël Proust dixit: >On Fri, Oct 4, 2013 at 2:32 PM, Alexander S. wrote: >> Uh, cannot this be achieved by piping output to tac? > >At which points someone asks why is there a sorted order at all in ls >output… cannot this be achieved by piping output to sort? Only if you pipe it through rs¹

Re: [dev] OpenBSD terminfo

2013-09-12 Thread Thorsten Glaser
Roberto E. Vargas Caballero dixit: >This means that is needed be root to install a new definition, I was assuming you had control over the system, yes. >and it sounds strange to me that a normal user cannot add a >new terminal definition. There may or may not be a way, but I don’t know it. UTSL

[dev] OpenBSD terminfo (was Re: [st][PATCH] Wide character support)

2013-09-10 Thread Thorsten Glaser
Roberto E. Vargas Caballero dixit: >After reading your reply I dig more in the problem, and I can see now >that the problem is not related to the wide character patch. I am using >OpenBSD now, where there is a binary database of terminfo definitions >in /usr/share/misc/terminfo, and it has a very

Re: [dev] [PATCH] Add -g (geometry) option to tabbed.

2013-08-20 Thread Thorsten Glaser
Christoph Lohmann dixit: >Thanks for the hint, but you didn’t do it right. The geometry string al‐ >lows to specify negative positions too and a negative zero too. Addi‐ Hrm, ok ☹ back to the drawing board, then (unless you’ve got a hint – I’ve not done any X11 programming previously). >tiona

[dev] [PATCH] Add -g (geometry) option to tabbed.

2013-08-20 Thread Thorsten Glaser
Signed-off-by: Thorsten Glaser --- LICENSE | 1 + tabbed.1 | 5 + tabbed.c | 8 3 files changed, 14 insertions(+) diff --git a/LICENSE b/LICENSE index add8a53..b8dc9ea 100644 --- a/LICENSE +++ b/LICENSE @@ -3,6 +3,7 @@ MIT/X Consortium License © 2009-2011 Enno Boland © 2011

Re: [dev] [sbase] [patch] Fix warnings about strcpy() etc. on OpenBSD

2013-08-15 Thread Thorsten Glaser
sin dixit: >On Thu, Aug 15, 2013 at 11:00:11AM +0000, Thorsten Glaser wrote: > >> >if(len+1 > *size && !(*p = realloc(*p, len+1))) ^ >> >eprintf("realloc:");

Re: [dev] [sbase] [patch] Fix warnings about strcpy() etc. on OpenBSD

2013-08-15 Thread Thorsten Glaser
sin dixit: > if(!(p = malloc(strlen(d->d_name)+1))) > eprintf("malloc:"); >- strcpy(p, d->d_name); >+ snprintf(p, strlen(d->d_name)+1, "%s", d->d_name); I object. The better fix here is: +

Re: [dev] Re: mksh build system

2013-08-03 Thread Thorsten Glaser
Anselm R Garbe dixit: >Are you willing to accept a Makefile/config.mk approach for mksh? This […] >My current approach for all sta.li userland tools is creating a custom >Makefile/config.mk, simply because the existing Build.sh, autoconf or >whatever approach sucks. (jump to tl;dr at the end of t

Re: [dev] Re: coreutils / moreutils - DC a directory counter

2013-07-29 Thread Thorsten Glaser
Bjartur Thorlacius dixit: > by the censor. In short, ext2/3 directories are linked lists. You can traverse Are they, still? I thought they had the equivalent of UFS_DIRHASH nowadays… bye, //mirabilos -- [...] if maybe ext3fs wasn't a better pick, or jfs, or maybe reiserfs, oh but what about xfs

[dev] Re: daemon for DWM

2013-07-29 Thread Thorsten Glaser
Kai Hendry dixit: >And run your C program from systemd? (*duck*) /me shudders (at the mere thought of “anathema” Poettering software) Someone actually took my analog clock (written in mksh) and packaged it for Arsch Linux, with a systemd… whatever they call initscripts these days… that runs it o

Re: [dev] Re: coreutils / moreutils - DC a directory counter

2013-07-26 Thread Thorsten Glaser
Calvin Morrison dixit: >Its called unionfs if I recall No. Go read it again. >On Jul 25, 2013 9:28 PM, "Thorsten Glaser" wrote: And stop top-posting and full-quoting. Read http://www.afaik.de/usenet/faq/zitieren/ (it’s in German, English and Dutch, so no excuses).

[dev] Re: coreutils / moreutils - DC a directory counter

2013-07-25 Thread Thorsten Glaser
Calvin Morrison dixit: >I was sick of ls | wc -l being so damned slow on large directories, so What, besides the printing and sorting, is the slow part anyway? Is it the VFS API or just the filesystem code? In the latter case… could workarounds exist? Someone asked this… http://fenski.pl/2013/07

Re: [dev] [sbase] [patch] Optimize 'ls' and add '-U'

2013-07-22 Thread Thorsten Glaser
Chris Down dixit: >If you really care, any POSIX shell should be able to do this as long >as you don't hit ARG_MAX: > > set -- * && echo "$#" I think ARG_MAX may not be relevant here… but globbing * usually sorts, and shells don’t always use the fastest algorithms… … but OTOH, if you have that

Re: [dev] [st] Problem with shift insert in neo2 layout

2013-07-21 Thread Thorsten Glaser
Dixi quod… >What raw keys does it precisely produce in st? Oh wait. You expect it to insert from the buffer, as opposed to do a shell functionality. Meh. I just middle-click to do that. You might want to “xmodmap -pke” and look at the output, as well as toy around with xev. If you expect the s

Re: [dev] [st] Problem with shift insert in neo2 layout

2013-07-21 Thread Thorsten Glaser
Markus Teich dixit: > I am using the neo2 keyboard layout [0] via "setxkbmap de neo" and noticed, > the > Shift+AltGr+ä combo does not work in st. > Can someone help me debug/fix this? What raw keys does it precisely produce in st? $ cat Then show what's written. bye, //mirabilos -- 17:08⎜

Re: [dev] [sbase] [patch] Adding tar v2

2013-07-16 Thread Thorsten Glaser
Nick dixit: >What other evil things can tar creators do? Symlinks with st_nlink ≠ 1 for one ☹ need to fix that in paxmirabilis (MirCPIO) too. bye, //mirabilos -- 17:08⎜«Vutral» früher gabs keine packenden smartphones und so 17:08⎜«Vutral» heute gibts frauen die sind facebooksüchtig 17:10⎜«Vutra

Re: [dev] [sbase] Patch to make md5 and sha1 more similar

2013-07-15 Thread Thorsten Glaser
Andreas Krennmair dixit: > from a few years ago that explains in detail how clever compilers really are > with their optimizations: http://www.fefe.de/source-code-optimization.pdf “Learn what the compiler does” – did anyone do that for pcc recently? I’m sure it does _not_ do all those uber-optimi

Re: [dev] [sbase] shell scripts

2013-07-07 Thread Thorsten Glaser
hiro dixit: >one more reason to use use proper plan9: bourne shell sucks a lot >compared to rc. Well nobody uses bourne shell (that thing with U+0060 for COMSUBs and ^ instead of | as pipe character) any more. Welcome to the 21ₛₜ century. Although I freely admit that POSIX shell also sucks and

Re: [dev] [sbase] Adding tar

2013-07-07 Thread Thorsten Glaser
Strake dixit: >miss them. Archiver/compressor integration loses, for it needs a flag >and code for each compression format. I’d not use those anyway. I normally compress with: find foo -type f | sort | cpio -oC512 -Hustar | gzip -n9 >foo.tgz Failing that, this one’s almost the same: tar -b 1 -

Re: [dev] [sbase] shell scripts

2013-07-07 Thread Thorsten Glaser
Strake dixit: >shift $(dc -e "$OPTIND 1 - p"); *what*?! shift $(($OPTIND-1)) is POSIX. bye, //mirabilos -- FWIW, I'm quite impressed with mksh interactively. I thought it was much *much* more bare bones. But it turns out it beats the living hell out of ksh93 in that respect. I'd even consider

Re: [dev] [sbase] Adding tar

2013-07-07 Thread Thorsten Glaser
Markus Wichmann dixit: >One way I also find myself using quite often: > >tar xfC filename.tar.gz directory This one is, I believe, not portable: behind f the filename must be immediately. (Also you forgot z.) An often-seen case of this unportablity is people using 'tar xfz foo.tgz' instead of xzf

Re: [dev] lisp

2013-07-02 Thread Thorsten Glaser
Andrew Gwozdziewycz dixit: >SBCL and Racket are certainly faster than Python, PHP, Ruby, Perl in most Less portable: http://packages.debian.org/sid/sbcl#pdownload bye, //mirabilos -- FWIW, I'm quite impressed with mksh interactively. I thought it was much *much* more bare bones. But it turns ou

Re: [dev] Re: Maintaining sbase

2013-06-25 Thread Thorsten Glaser
Chris Down dixit: >try mksh. FWIW, mksh has three different “echo”; if invoked as mksh, it uses a BSD echo by default which does interpret backslashes, but if one uses set -o posix (or invokes it as sh or -sh and it is compiled with -DMKSH_BINSHPOSIX (CVS HEAD)) it has an echo that only honours -

Re: [dev] [sbase] built with watcom

2013-06-19 Thread Thorsten Glaser
Jens Staal dixit: > By the way: what is the status of MirOS on top of Linux? A dead project? It was never really worked on but apparently got hyped in “the media” (especially Wikipedia, which is known to get its facts wrong but disallow corrections). It was basically a “we could…” idea but not im

Re: [dev] [sbase] built with watcom

2013-06-18 Thread Thorsten Glaser
Jens Staal dixit: > I am looking at Alpine at the moment... uclibc/busybox based That is precisely the thing I was *not* addressing by stating “company-use” ☺ Don’t get me wrong, I’ve started toying with something musl too, but for “at work” you don’t want that, or can’t justify it, or whatever.

Re: [dev] [sbase] built with watcom

2013-06-18 Thread Thorsten Glaser
Jens Staal dixit: >> How does someone use that package on a working Linux distribution? > That depends on how you define "working". Did nobody fork Arch from before it became poettering’d and UsrMove’d yet? May call it Hintern Linux ;-) Indeed, I see a serious problem should Debian also fall, b

Re: [dev] [st] Enter unicode symbol

2013-06-12 Thread Thorsten Glaser
Thuban dixit: >But what about st? ^Au echo "bind u digraph 'U+'" >>~/.screenrc hf, //mirabilos -- 17:08⎜«Vutral» früher gabs keine packenden smartphones und so 17:08⎜«Vutral» heute gibts frauen die sind facebooksüchtig 17:10⎜«Vutral» aber auch traurig; früher warst du als nerd voll am arsch 17

Re: [dev] (s)werc and the suckless.org homepage

2013-06-11 Thread Thorsten Glaser
Andrew Gwozdziewycz dixit: >But how often does stuff actually get updated? You can simply pregenerate >all the content and serve it... For a site with 50 pages, that's nothing. FWIW, the MirBSD website is kept in CVS and generated with some (BSD) make and mksh scripts, then rsync’d to a webserver

Re: [dev] [sbase] 64-bit type for split

2013-06-11 Thread Thorsten Glaser
Galos, David dixit: >On GNU systems stdint.h still provides uint64_t, but I have no idea >how portable this is. is C99. bye, //mirabilos -- 17:08⎜«Vutral» früher gabs keine packenden smartphones und so 17:08⎜«Vutral» heute gibts frauen die sind facebooksüchtig 17:10⎜«Vutral» aber auch traurig;

[dev] Re: mksh build system

2013-06-01 Thread Thorsten Glaser
Cc’ing the mksh list. Feel free to keep it, redirect there, or remove it again. Christoph Lohmann dixit: >At least autoconf allows to specify a prefix, LDFLAGS or CFLAGS and some A prefix is only needed when the Makefile installs; Build.sh accepts the environment variables CC, CPPFLAGS, CFLAGS,

Re: [dev] Is there any plan on a shell for sbase?

2013-05-31 Thread Thorsten Glaser
Christoph Lohmann dixit: >Remove this Build.sh crap and add some real Makefile and I will recon‐ >sider using it. You can let Build.sh generate a Makefile using the -M option, but that Makefile would then be specific to the system it ran on (actually “for”, not “on”, considering cross-compiling

Re: [dev] Is there any plan on a shell for sbase?

2013-05-31 Thread Thorsten Glaser
Christoph Lohmann dixit: >* tab completion Can busybox ash do this? (If so, that’s recent.) > * Does this really need plugins? Definitely not; in mksh, tab completion is deterministic: the first word is expanded as command, all other words as files. Only downside is that tab completion i

Re: [dev] [sbase] changes to test

2013-05-30 Thread Thorsten Glaser
random...@fastmail.us dixit: >Okay - I'll get it in patch format later today, but it might be this >weekend before I have time to write a manpage - test has a _lot_ of >options. Feel free to take the test(1) description that’s part of https://www.mirbsd.org/man1/mksh as base (it’s in mdoc). bye,

Re: [dev] lynx?

2013-05-29 Thread Thorsten Glaser
Silvan Jegen dixit: >As a Vim user I see it the same way. In addition, correct me if I am >wrong but as far as I know lynx does not handle CJK characters >properly (German umlauts seem to work ok apparently). No, that works properly as long as you use libncursesw (one of the benefits of MirBSD ov

Re: [dev] lynx?

2013-05-28 Thread Thorsten Glaser
markus schnalke dixit: >you rather use w3m? Is there anyone on earth having figured out how to *use* that, as in navigate? Fernando C.V. dixit: >Also you can write rules for it that allow you to preprocess certain >websites or handle some of them differently, like running external >viewers for

Re: [dev] upload via html?

2013-05-25 Thread Thorsten Glaser
Nicolas Braud-Santoni dixit: >Well, SFTP requires you to create a user account. (I'm aware that it may >not be one with which you can SSH in). >Some people might not want this. If someone does not have a user account on your site, they have no business uploading large files either. If you’re on

Re: [dev] Re: Why HTTP is so bad?

2013-05-24 Thread Thorsten Glaser
Nick dixit: >and hackable base. It's certainly in the interests of many >unpleasant organisations to force people to 'consume web content' in >the way proposed, such that it can't readily be scraped or changed, I think that thing is called “Television”. Not really sure, considering I stopped deal

Re: [dev] Re: Why HTTP is so bad?

2013-05-24 Thread Thorsten Glaser
Sam Watkins dixit: >Would you rather everyone is exchanging binary word documents >over sun-rpc, or something like that? How about plaintext over ssh, possibly with rsync-over-ssh? That’s Unix. (IMAPS and SMTP also work…) bye, //mirabilos -- > Hi, does anyone sell openbsd stickers by themselv

[dev] Re: Why HTTP is so bad?

2013-05-22 Thread Thorsten Glaser
Andrew Gwozdziewycz dixit: >Not really, given that HTML has *nothing* to do with HTTP. Both are overused, really. >Of course, you often retrieve HTML documents via HTTP Doing anything else (well, file download is also okay), such as this XMLRPC crap, or even tunneling, over HTTP instead of just

Re: [dev] [st] problem reading man pages

2013-05-22 Thread Thorsten Glaser
G David Modica dixit: >On 11:06 Wed 22 May , Thorsten Glaser wrote: >> How about: >> >> script man foo q exit >gdm@gdmThink ~$ script man foo q exit >bash: syntax error near unexpected token `newline' >gdm@gdmThink ~$ This is something to pr

Re: [dev] [st] problem reading man pages

2013-05-22 Thread Thorsten Glaser
Fernando C.V. dixit: >rendered, but unreadable.. can you copy-paste the invisible spaces >between the "[-c ]"? How about: script man foo q exit Then send in the typescript, gzip(1)d. bye, //mirabilos -- Sorry, I’m annoyed today and you came by as an Arch user. These are the perfect

Re: [dev] gettext-stub

2013-05-16 Thread Thorsten Glaser
pancake dixit: > On 05/16/13 13:09, hiro wrote: >> http://penma.de/code/gettext-stub/ > > https://github.com/rofl0r/gettext-tiny https://www.mirbsd.org/MirOS/dist/hosted/libnointl/libnointl-20091122.tar.gz bye, //mirabilos PS: Contributors welcome, e.g. to provide the same API and, for the

Re: [dev] [dwm] Running dwm in KDE

2013-05-16 Thread Thorsten Glaser
Martin Miller dixit: >pkill -9 metacity && dwm In most environments, this will *not* work, as terminating the window manager will terminate your X session as well. >I've been given a laptop for work that's running Kubuntu. In the KDE >world is there something similar to metacity that I can kill

Re: [dev] upload via html?

2013-05-13 Thread Thorsten Glaser
Hugues Moretto-Viry dixit: >Could you explain me why FTP sucks? http://mywiki.wooledge.org/FtpMustDie bye, //mirabilos -- 13:37⎜«Natureshadow» Deep inside, I hate mirabilos. I mean, he's a good guy. But he's always right! In every fsckin' situation, he's right. Even with his deeply perverted ta

Re: [dev] surf: typo in manpage

2013-05-11 Thread Thorsten Glaser
j. van den hoff dixit: > -.B Ctrl\-f and Ctrl\-\\ > currently, the corresponding line renders as "Ctrl-f and Ctrl-" when calling The nroff escape for a backslash is actually \e ☺ • https://www.mirbsd.org/manUSD/21.troff • https://www.mirbsd.org/manUSD/22.trofftut bye, //mirabilos -- Gast: „Ei

Re: [dev] [PATCH v3] dmenu_run: Don't leave a shell running

2013-04-28 Thread Thorsten Glaser
Peter Hofmann dixit: >I believe you can work around all these issues by simply prefixing the >command piped to the shell with an "exec": > > dmenu_path | dmenu "$@" | sed 's/^/exec /' | ${SHELL:-"/bin/sh"} & Won't necessarily work if the result is not a simple command, though… FWIW: tg@bl

Re: [dev] [PATCH v3] dmenu_run: Don't leave a shell running

2013-04-27 Thread Thorsten Glaser
Ross Lagerwall dixit: >+eval exec $(dmenu_path | dmenu "$@") You might need double-quotes around that (the eval argument). Best to check with something containing a tab, e.g. 「a\↹b "c↹d" e」 where ↹ is a tab. Sometimes spaces and quotes are not enough to show the issues. bye, //mirabilos -- “It

Re: [dev] System shell for sta.li

2013-04-27 Thread Thorsten Glaser
Jens Staal dixit: > Sorry for taking this out of context (and on the wrong list), but I built mksh > (now a relatively old version 40f) for Plan9/APE (using the native "cc" front > end to the plan9 compilers) in the hope to replace the old pdksh "sh" command > there. Yeah, I did that too. With ed

Re: [dev] System shell for sta.li

2013-04-27 Thread Thorsten Glaser
Edgaras dixit: >Well it fails to compile on PI for me What OS? What error message? There was a period where a bug in GCC prevented a configure time check from working. In mksh R45 (released yesterday), the entire arithmetics code has been rewritten to not use signed integers, making that check o

Re: [dev] System shell for sta.li

2013-04-27 Thread Thorsten Glaser
Anselm R Garbe dixit: >Can you elaborate on this functionality a bit that mksh provides, but >pdksh doesn't? Not easily; the last release of pdksh was in 1999, and mksh is actively developed; even pointing out every single bugfix, for POSuX compliance or genuine, would take several Kibibytes. It

Re: [dev] System shell for sta.li

2013-04-27 Thread Thorsten Glaser
Gregor Best dixit: >didn't use mksh that long before switching from Linux to OpenBSD. Nothing prevents you from replacing /bin/{,k}sh with mksh… (I’ve done so on an OpenBSD VM at work) or just installing it alongside and using it. bye, //mirabilos PS: on that signature… Frank is zsh developer/c

Re: [dev] [st] [PATCH] 8bit-meta like xterm

2013-04-23 Thread Thorsten Glaser
Roberto E. Vargas Caballero dixit: >It is the expected behaviour. As far as I know the first keyboard with meta >key was space-cadet keyboard (look it in Ah okay, thanks for the historic backup! >meta codes you have it configured for it (or maybe your xterm has a >different default configuration

Re: [dev] [st] [PATCH] 8bit-meta like xterm

2013-04-23 Thread Thorsten Glaser
Gregor Best dixit: >are added to your keyboard layout. Works fine with st, and the regular >"Left alt sends escape"-behaviour stays the same (and works fine with >irssi and the like). On the BSD text console and in default XTerm, the left Alt key acts as 8-bit enabling Meta key, so it’s *not* the

Re: [dev] [st] [PATCH] 8bit-meta like xterm

2013-04-23 Thread Thorsten Glaser
random...@fastmail.us dixit: >If this were an intended feature why would it elevate latin-1 over other >unicode characters? This only proves my point. It doesn’t – it’s just that latin1 is the first 256 chars of Unicode by accident (or design, don’t know, ask the Unicode people). And this Meta/8

Re: [dev] [st] [PATCH] 8bit-meta like xterm

2013-04-23 Thread Thorsten Glaser
random...@fastmail.us dixit: >Wait a minute... what exactly do you _expect_ meta to do? Using (for >example) meta-a to type 0xE1 "a with acute" is _not_, in fact, the >expected or intended behavior; it is a bug. And I don't think it will No, it is the intended behaviour. http://fsinfo.noone.org/~

Re: [dev] [st] double-width usage

2013-04-23 Thread Thorsten Glaser
Christoph Lohmann dixit: >Which applications do you use that handle double-width as you expect them? mksh and jupp (though I don’t use st). > Do these applications use the double-width for the layout? It’s possible to use Unicode characters, halfwidth or fullwidth, to draw nice boxen in e

  1   2   >