I think the earliest reference to this solution is here: https://alioth-lists-archive.debian.net/pipermail/bash-completion-devel/2010-May/002743.html, inspired by https://wiki.tcl.tk/1508
What's upvar?
I dunno, what's up with you?
I am now the third fastest person to report a time for Celestial Resort, side B.
Third fastest can also be written as "slowest".
Wow did that take ages to finally beat without dying.
Have you ever wanted AGPL compliance in just one rust macro?
Introducing the "include_repo!" macro, to easily let you compile all your source code into your binary, ready to be served to your users.
Hey everyone, I'm Sam. I'm friends with @ek, @iliana@cybre.space, @noahm@chaos.social, and probably others that I don't yet know in the fediverse. I work on Linux containers for a living. #introduction
For anyone curious about the details, it's basically "ipv6" https://github.com/moby/moby/issues/33099
In go's defence, the behaviour was fixed in go1.9, so it probably can't panic anymore (whoops, didn't realize that until I looked it up now) https://github.com/golang/go/issues/18806
@iliana@cybre.space For bonus points, did you know that the `Addr` may not actually be what it's listening on?
That is to say, the following code can panic in some cases:
conn, err := net.Listen("tcp", ":8080")
if err != nil {
log.Fatal("couldn't listen")
}
_, err = net.Dial("tcp", conn.Addr().String())
if err != nil {
panic("this does happen in some cases")
}
software
Original commit that added it doesn't totally answer why it exists, but I guess it's the best I'll get for now. It was a lot shorter back then too!
software
@cosine@anticapitalist.party It is amazing and I developed muscle memory for using it...
And then the code scared me too much so I rewrote it in rust, so I use pazi these days (https://github.com/euank/pazi).
I'm looking into the best way to bring fasd's file-path-tracking stuff into pazi too is why I'm reading this code
software
As far as I can tell, it works!
echo '..' | sed ..... => /home
echo 'foo/../foo' | sed ... => /home/esk/foo
But also why does this exist
software
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
I'm happy to announce the release of pazi 0.1.0! If you spend lots of time in your shell, pazi might help you get around!