software Show more
the best and worst implementation of realpath I've seen:
sed '/^[^/]/s@^@'"$PWD"'/@
s@/\.\.$@/../@;s@/\(\./\)\{1,\}@/@g;:0
s@[^/][^/]*//*\.\./@/@;t 0
s@^/*\.\./@/@;s@//*@/@g;s@/\.\{0,1\}$@@;s@^$@/@'
from https://github.com/clvv/fasd/blob/90b531a5daaa545c74c7d98974b54cbdb92659fc/fasd#L320-L331
software Show more
As far as I can tell, it works!
echo '..' | sed ..... => /home
echo 'foo/../foo' | sed ... => /home/esk/foo
But also why does this exist
Hello internet stranger!
Wobscale.Social is a mastodon instance run by Wobscale Technologies, LLC.
It's primarily meant as a small little piece of the fediverse for members of Wobscale Technologies and friends of the wob.
General registrations are closed, but if you want an account, give a shout over toot, email, or irc, and we'll see what we can do.
Cheers!