gamma

joined 1 year ago
MODERATOR OF
[–] gamma@programming.dev 1 points 4 months ago (2 children)

That's a latrine. They're talking about a fancy light fixture.

[–] gamma@programming.dev 1 points 5 months ago (1 children)

If you say "a 10d10", I know what you mean, but "10d10" is definitely the sum of 10 10-sided dice.

[–] gamma@programming.dev 0 points 10 months ago (1 children)

Nope, confirmed different mobo.

[–] gamma@programming.dev 0 points 1 year ago (1 children)

I used to write Bash more than anything, but now the things I write are either simple enough to keep POSIX or complex enough that I miss the extra niceties Zsh provides.

[–] gamma@programming.dev 0 points 1 year ago* (last edited 1 year ago) (3 children)

There are two massive points no one has mentioned yet.

  • Quoting every expansion isn't necessary in Zsh. Parameters don't split or glob by default.
  • $array actually expands to every element in an array.

Compare this between Bash and Zsh:

a=('/* hello */' 'world!' '  ')
printf '"%s" ' $a
view more: ‹ prev next ›