@marinwaves You might like this then; a cheap workflow enforcer:
alias foo='echo hello'
alias foofoo='echo dangerous thing'
Now run them like this:
$ foo
hello
$ foo!!
dangerous thing
If you didn’t precede `foo!!` with `foo`, then `foo!!` expands to something that just won’t work.
.@theclairedanes In “Homeland”, Carrie does this “pfft” thing a lot - it’s a really funny characterization. Did the scripts say it, or did you just do it?
How am I ever going to make gravy if @PCC’s social media team doesn’t tell their tech team to fix the broken link?
Am I condemned to googling the recipe?!
@marinwaves I think the French sailor Bernard Moitessier wrote that friendship with a sailor is fast, but while you are just getting used to the warmth of their handshake, they slip port and are gone.
Holy crap #bash fall-through with case is even weirder than I thought
foo=hi
case "$foo" in
*) echo "preamble" ;&
hi) echo "specific handler" ;&
*) echo "postamble runs too";;
esac
Both wildcard handlers run, this is fantastic
In #bash the wildcard catch-all case can fall-through to more refined options, which means you can write try/catch/finally style stuff if you’re so inclined:
foo=hi
case "$foo" in
*) echo "default: $foo"; ;&
hi) echo "hello there!";;
esac
# default: hi
# hello there!