Remix.run Logo
reactordev 6 hours ago

The ultimately sad part was the professor in a Sun OS machine.

In a corner with no where to go, giving demerits because his bash was older than he realized.

Reminds me of my college professor that claimed you don’t have to close HTML tags (some you absolutely do) and I proved that you do. Not all of them, but most of them. (Netscape Navigator Days)

Sharlin 4 hours ago | parent | next [-]

Why do you think the prof even used bash? I highly doubt his ancient SunOS machine had a GNU toolchain. `test` and `[` are both POSIX, but if there was no `/bin/[` I doubt the shell in question (original Bourne? Some proprietary Sun shell? Who knows) had it built in either.

reactordev 4 hours ago | parent [-]

Bourne /bin/sh I’m certain of it. If it was Sun OS, it was sh. Was just stating that he was sitting on old while trying to teach new and handing out -1’s for leveraging the new.

Terrible…

jonhohle 5 hours ago | parent | prev [-]

It doesn’t have anything to do with bash (though modern bash may use a built in for `[`). He don’t have the `[` program (usually linked to `test`).

reactordev 5 hours ago | parent [-]

Which is why later versions of bash have a builtin…

Precisely because those older systems didn’t link to it!

So my comment still stands.

Someone 2 hours ago | parent | next [-]

> Precisely because those older systems didn’t link to it!

Not to speed up bash scripts? Launching a process for simple if statements such as those checking whether a file exists is fairly expensive.

reactordev 2 hours ago | parent [-]

Ugh, which is why it became a builtin…

Ya’ll are tracing the same logic of the 90s here.

4 hours ago | parent | prev [-]
[deleted]