illiliti · @illiliti
11 followers · 117 posts · Server fosstodon.org

Is there a way to get username from uid using only utilities? If no, I'll think about sending a proposal to POSIX to add a new flag to id for that.

#posix

Last updated 1 year ago

John-Mark Gurney · @encthenet
589 followers · 8685 posts · Server flyovercountry.social

@alfonsosiciliano

Is there a reason you didn't use syscall.master to parse instead? (Or maybe you did and the blog is slightly wrong?)

cgit.freebsd.org/src/tree/sys/

#unix #posix #bsd #freebsd #coding #c #opensource #os #kernel #syscall

Last updated 1 year ago

· @thomasmey
72 followers · 1235 posts · Server social.tchncs.de

About locales and standards (e.g. environment variables LC_*), a rant:

github.com/mpv-player/mpv/comm

#posix

Last updated 1 year ago

Mark-Andrew · @mark
13 followers · 50 posts · Server mastodon.bsd.cafe

@hnygd @Codeberg@social.anoxinon.de Thank you all for your replies!

At the moment I am using a self developed solution around (or , github.com/adam-gaia/new-stow), a templated system of shell scripts and a self-hosted git instance ().

Works good, but I am alway looking for the next level of automation.

@hnygd I will have a deeper look into your scripts. Thanks for sharing!

#posix #gitea #ansible #nstow #newstow

Last updated 1 year ago

Francis 🏴‍☠️ Gulotta · @reconbot
524 followers · 8603 posts · Server toot.cafe

I had a long conversation with @requiem and he helped me be OK with admitting this to myself and others.

I think sucks and we could do better if we moved on from it.

#posix

Last updated 1 year ago

Paolo Redaelli · @paoloredaelli
278 followers · 5883 posts · Server mastodon.uno

@b0rk_reruns
Thanks, but I'd rather keep using that non features of that awful shell that is 😁
@alcinnz

#posix #bash

Last updated 1 year ago

Ivan, the Language Mangler 🦀 · @hywan
1435 followers · 1626 posts · Server fosstodon.org

Testing sudo-rs and improving sudo along the way, ferrous-systems.com/blog/testi.

sudo-rs is a re-implementation of sudo in Rust. While testing sudo-rs, they have found several inconsistencies in the specification, and found 2 bugs in the original sudo implementation.

This test suite can run on both implementations.

Link to sudo-rs: github.com/memorysafety/sudo-r.

#sudo #posix #unix #test #safety #security #rustlang

Last updated 1 year ago

Vida Informática · @vidainformatica_arg
30 followers · 31 posts · Server mastodon.la

Sabias que para el 19-01-2038 a las 03:14:07 (UTC) los contadores de la hora en sistemas POSIX de 32 bits llegara a su limite? Luego de eso, estos contadores se reiniciarían volviendo al año 1901. Puede traer problemas en maquinaria pesada, sistemas embebidos, aviones y muchos componentes. Por esto se tienen que actualizar a sistemas de 64 bits, retrasando este problema.

#vidainformatica #informatica #sistemas #32bits #limite #software #posix #64bits #linux #windows #unix #tecnologia

Last updated 1 year ago

Paolo Redaelli · @paoloredaelli
275 followers · 5739 posts · Server mastodon.uno

@nixCraft AFAIK
were created to slim down disk occupation of basic commands and it achieved this design goal very efficiently.
has some controversial design choices but as others has already pointed out when used wisely is a good tool

#busybox #posix #systemd

Last updated 1 year ago

illiliti · @illiliti
6 followers · 20 posts · Server fosstodon.org

Project of the day: pax archive utility, aka endorsed replacement: github.com/michaelforney/pax

#posix #tar

Last updated 1 year ago

· @mort
99 followers · 635 posts · Server fosstodon.org

Does anyone know how you get `sort` to work the same on and ? (and ideally other /#UNIX like platforms)

Should `sort -f` to case-fold be enough? That seems to at least exist in both macOS and Linux.

I feel like ideally, I'd just have it sort "ASCIIbetical" order, i.e sort based on the byte values, like what `strcmp` would do. But there doesn't seem to be a standard flag for that.

#linux #macos #posix

Last updated 1 year ago

@pmj stackoverflow.com/questions/72

Stichwort und line termination. Die Zeile ist eigentlich gar nicht da ;)

#posix

Last updated 1 year ago

toolbear makes games? (Y/n) · @toolbear
17 followers · 41 posts · Server dice.camp

I mean … DANG!

#ios #unix #posix #perl

Last updated 1 year ago

toolbear makes games? (Y/n) · @toolbear
17 followers · 41 posts · Server dice.camp

I'm super impressed with `a-Shell` and `a-Shell mini` for . Having a POSIX shell environment on my iPad is amazing.

Several shell scripts I authored on my iPad using a-Shell's port of dash shell in POSIX mode worked as-is (sans the shebang line) when I ran them in bash on my Mac Mini.

🔜 trying out the and ports

holzschu.github.io/a-Shell_iOS

github.com/holzschu/a-shell

[1] also:impressed "and by extension I'm impressed with WebAssembly. Wow."

#ios #lua #perl #posix #unix

Last updated 1 year ago

Princess Cadance · @Cadance
17 followers · 169 posts · Server equestria.social
· @mort
97 followers · 625 posts · Server fosstodon.org

TIL: If you write to a closed socket in , your process receives SIGPIPE, whose default action is to kill your process.

Why???? The write() call communicates failure by returning 0 or -1 or whatever. Does it really need to also abort the process?

#posix

Last updated 1 year ago

Kevin Karhan :verified: · @kkarhan
1233 followers · 81267 posts · Server mstdn.social

@benjamineskola @unfortunateshort @josephholsten @fuchsiii I mean, I know that is seen as more or less "the best compatible shell there is"...

I think really shines at the user experience when interacting directly with it.

#fish #sh #posix #zsh

Last updated 1 year ago

Kevin Karhan :verified: · @kkarhan
1233 followers · 81271 posts · Server mstdn.social

@nixCraft that is actually true...

Unless someone provides a program with it can only mess up the $HOME of the user account which it runs under.

This is why the default config for servers like and to literally be run as or rather services under dedicaded user accounts, so a webserver - even when hacked - can't f**k up the system.

It's part of the -Approach to and in and is supplemented with ...

#apparmour #posix #Groups #users #kiss #systemd #daemons #PostgreSQL #apache #privilegues #Root

Last updated 1 year ago

illiliti · @illiliti
5 followers · 15 posts · Server fosstodon.org

I wonder why and other systems accept NUL-terminated strings in their underlying system calls like open and mkdir? Why not just accept pointer + length instead and make life easier for programming languages that have native string type with length builtin?

#linux #posix

Last updated 1 year ago