▲ 420 ▼ Finding a years old project be like (iusearchlinux.fyi) submitted 3 years ago by narshee@iusearchlinux.fyi to c/programmerhumor@lemmy.ml 46 comments fedilink hide all child comments
[–] nicman24@kbin.social 41 points 3 years ago (2 children) bash is veeery old and it implements all of posix. permalink fedilink source hideshow 4 child comments replies: [–] Noodlez@programming.dev 22 points 3 years ago (2 children) Bash's posix mode still has a lot of bashisms. The only way to test true posix compliance is to test with other shells like dash and ash. I have found this is the case a lot of time. People will say it's POSIX compliant shell, but it'll obviously only be tested in bash Like at that point just make it a bash script, since pretty much every system under the sun has it. permalink fedilink source parent hideshow 4 child comments replies: [–] nicman24@kbin.social 5 points 3 years ago there is always shellcheck it points them out to you permalink fedilink source parent [–] QuazarOmega@lemmy.world 2 points 3 years ago Oh hey, it really does! permalink fedilink source parent [–] narshee@iusearchlinux.fyi [S] 4 points 3 years ago (1 child) I was thinking about bash scripts that use bash specific builtins. Some of those require >= x version. permalink fedilink source parent hideshow 2 child comments replies: [–] nicman24@kbin.social 6 points 3 years ago (1 child) even <<< is like 10 years old permalink fedilink source parent hideshow 2 child comments replies: [–] narshee@iusearchlinux.fyi [S] 6 points 3 years ago Yeah. The only language I didn't have the right version for in the past was python. I just wanted to make a joke about standards vs implementations. permalink fedilink source parent
[–] Noodlez@programming.dev 22 points 3 years ago (2 children) Bash's posix mode still has a lot of bashisms. The only way to test true posix compliance is to test with other shells like dash and ash. I have found this is the case a lot of time. People will say it's POSIX compliant shell, but it'll obviously only be tested in bash Like at that point just make it a bash script, since pretty much every system under the sun has it. permalink fedilink source parent hideshow 4 child comments replies: [–] nicman24@kbin.social 5 points 3 years ago there is always shellcheck it points them out to you permalink fedilink source parent [–] QuazarOmega@lemmy.world 2 points 3 years ago Oh hey, it really does! permalink fedilink source parent
[–] nicman24@kbin.social 5 points 3 years ago there is always shellcheck it points them out to you permalink fedilink source parent
[–] QuazarOmega@lemmy.world 2 points 3 years ago Oh hey, it really does! permalink fedilink source parent
[–] narshee@iusearchlinux.fyi [S] 4 points 3 years ago (1 child) I was thinking about bash scripts that use bash specific builtins. Some of those require >= x version. permalink fedilink source parent hideshow 2 child comments replies: [–] nicman24@kbin.social 6 points 3 years ago (1 child) even <<< is like 10 years old permalink fedilink source parent hideshow 2 child comments replies: [–] narshee@iusearchlinux.fyi [S] 6 points 3 years ago Yeah. The only language I didn't have the right version for in the past was python. I just wanted to make a joke about standards vs implementations. permalink fedilink source parent
[–] nicman24@kbin.social 6 points 3 years ago (1 child) even <<< is like 10 years old permalink fedilink source parent hideshow 2 child comments replies: [–] narshee@iusearchlinux.fyi [S] 6 points 3 years ago Yeah. The only language I didn't have the right version for in the past was python. I just wanted to make a joke about standards vs implementations. permalink fedilink source parent
[–] narshee@iusearchlinux.fyi [S] 6 points 3 years ago Yeah. The only language I didn't have the right version for in the past was python. I just wanted to make a joke about standards vs implementations. permalink fedilink source parent