Post 9hfDKMjfTnFu5HP9Zw by veer66@mstdn.io
(DIR) More posts by veer66@mstdn.io
(DIR) Post #9heQQaQEbvE4W2eSVk by veer66@mstdn.io
2019-04-10T02:57:24Z
0 likes, 0 repeats
I try to avoid GNU Bash and make my script on /bin/sh.
(DIR) Post #9hfAlH2OTNDaMuIpIe by xanderio@chaos.social
2019-04-10T11:36:34Z
0 likes, 0 repeats
@veer66 Even worse are script that us /bin/bash. #FreeBSD #BSD #OpenBSD
(DIR) Post #9hfAmO2nuLXqOA1d1E by xanderio@chaos.social
2019-04-10T11:36:46Z
0 likes, 0 repeats
@veer66 Even worse are script that use /bin/bash. #FreeBSD #BSD #OpenBSD
(DIR) Post #9hfAz9BgSLe84lGOB6 by veer66@mstdn.io
2019-04-10T11:39:05Z
0 likes, 0 repeats
@xanderio I wrote a lot of #!/bin/bash scripts. 😥 But I stopped. I hope some days I will run #NetBSD again.
(DIR) Post #9hfB2E2krGzc0NYSHI by xanderio@chaos.social
2019-04-10T11:39:37Z
0 likes, 0 repeats
@veer66 Just use #!/usr/bin/env bash.
(DIR) Post #9hfCRBIQJFlQg7Laeu by kay@mastodon.host
2019-04-10T11:55:20Z
0 likes, 0 repeats
@veer66 python3 beats python2, though 😀
(DIR) Post #9hfCS4NzUFthXJNJTM by veer66@mstdn.io
2019-04-10T11:55:31Z
0 likes, 0 repeats
@xanderio Thank you.
(DIR) Post #9hfCZYRa8ATEmocjUO by veer66@mstdn.io
2019-04-10T11:56:51Z
0 likes, 0 repeats
@kay I want to avoid them all when /bin/sh is enough.
(DIR) Post #9hfCfK12gdxVmAxapE by kay@mastodon.host
2019-04-10T11:57:54Z
0 likes, 0 repeats
@veer66 Me too, but as soon as it comes to numbers, I usually go for python 😂
(DIR) Post #9hfDKMAvYxSyLX9PQe by wzqtparor@pawoo.net
2019-04-10T12:04:06Z
0 likes, 0 repeats
Make sure your /bin/sh is not provided by bash.@kay @veer66
(DIR) Post #9hfDKMjfTnFu5HP9Zw by veer66@mstdn.io
2019-04-10T12:05:19Z
0 likes, 0 repeats
@wzqtparor @kay Yes, nowadays, they use dash on many GNU/Linux distros.
(DIR) Post #9hfVyhhOkvALrKjA1Y by dwardoric@chaos.social
2019-04-10T15:33:55Z
0 likes, 1 repeats
@xanderio@veer66I use that too but keep in mind that env will pick the first bash it finds from $PATH which might be relevant for security reasons.