You can’t really see it that way, it’s better push it against your tongue and taste the difference
You can’t really see it that way, it’s better push it against your tongue and taste the difference
Apparently when they were building the death star, they couldn’t figure out where to put the vents, so they just turned off the gravity and threw a bunch of womp rats in the center and built out pipes along the vectors of where they died.
Perl is the original GOAT! It took a look at shell, realised it could do (slightly) better, and forged its own hacky path!
That’s good, but if you like to name your arguments first before testing them, then it falls apart
#!/bin/bash
set -euo pipefail
myarg=$1
if [[ -z "${myarg}" ]]
then
echo "we need an argument!" >&2
exit 1
fi
This fails. The solution is to do myarg=${1:-}
and then test
Edit: Oh, I just saw you did that initialisation in the if statement. Take your trophy and leave.
My only issue is -u
. How do you print help text if your required parameters are always filled. There’s no way to test for -z if the shell bails on the first line.
Edit: though I guess you could initialise your vars with bad defaults, and test for those.
Alright, ive watched this anime twice and i guess im clearly missing something. What’s special about it? The animation was okay. They could have thrown in a couple of jokes to spice it up. Maybe toss a pie at the floaty girl once in a while, huh?
I feel like you’ve answered the wrong comment, and this a-ni-mal(? am I saying that right?) refers to someone else
What does this mean for John Mastodon’s grandkids?
You sound just like my ex-wife