News for hackers. Stuff that matters.
Re:Import – A Simple and Fast Module System for Bash and Oth... by remix2000 on Friday July 17, 2020 @10:02AM (#23870552)
Impressive…

How people manage to poison even old-school shell scripts with useless bloat.

If you want to source remote scripts that badly (despite this being against policies of almost every company), better keep it simple:

    telesource() { f=~/.cache/${1/\//} ; [ -f "$f" ] || curl -SsLo "$f" "$1" && source "$f" ; }
So you can invoke it like that:

    # The URL is downloaded once, cached forever, and then sourced
    telesource https://git.io/fAWiz
What does the name ``import`` even mean? Does it anyhow relate to sourcing? Or even shell scripting at all?

Now I'm waiting for a full JIT ECMAScript VM in pure portable Bash. Impress me even more ;)

Nonetheless, that's what it looks like to me. I'm just not fond of spilling idioms from one technology to everything else its users touch. That's much like our IT equivalent of Midas touch.

Re:Import – A Simple and Fast Module System for Bash and Oth... by emiliovesprini on Friday July 17, 2020 @11:49AM (#23871802)
> What does the name ``import`` even mean?

import name-clashes with ImageMagick's import, which comes pre installed in lots of Linux distros.

Issue (by me): https://github.com/importpw/import/issues/35