8
b2plane
116d

THERE IS A FUCKING DIFFERENCE IN BASH BETWEEN

if [ ... ]; then
...
fi

AND

if [ ... ]
then
...
fi

!!!!????????? ARE YOU FUCKING KIDING ME. NOBODY EVER TAUGHT ME THIS BULL SHIT

Comments
  • 4
    bash isn't something you get taught.

    bash isn't something you learn.

    bash is something you're born with, or you aren't.
  • 3
    @b2plane you need shellcheck in your life.

    https://github.com/koalaman/...
  • 3
    All of my bash scripts are 1 line calls to python scripts I wrote...
  • 1
    I always suspected they made bash unintuitive and inconsistent on purpose, and they made sure to use as many non-alphanumeric characters as possible so that developers can't just google the arcane language that only admins are supposed to use.
  • 2
    @ingosteinke tbf when bash was invented I don't think we had search engines

    search engines are the problem. they exclude the symbols when you search. they decided to do that somewhere after the 90s. prior to that you could search for symbols

    I remember searching forums for code symbols and it would work. it still works on those old bbs forums I believe
  • 0
    @tosensei agree to that, never learned it somehow. It doesn't stick
  • 2
    @atheist I just do !/usr/bin/env python3 and make executable. No bash here. Do you know python Cmd class? It's cool
Add Comment