Reputation
412
Top tag
Next privilege 500 Rep.
Access review queues
Badges
5 10
Newest
 Yearling
Impact
~12k people reached

  • 0 posts edited
  • 0 helpful flags
  • 6 votes cast
Jan
12
comment What's wrong with this for loop in bash script?
@serverliving.com no, this is not a problem with Bash. Bash is behaving exactly the way it should, and this is indeed an issue for which it makes sense to use an array. Why is it an issue to use an array of 4 elements?
Dec
28
awarded  Yearling
Dec
26
awarded  Notable Question
Dec
24
awarded  Good Question
Dec
23
comment Is there any reason to have a shebang pointing at /bin/sh rather than /bin/bash?
Also a good point.
Dec
23
awarded  Popular Question
Dec
23
comment Is there any reason to have a shebang pointing at /bin/sh rather than /bin/bash?
@user2338816 my bad, I meant objective. Thanks for your points!
Dec
23
awarded  Commentator
Dec
23
comment Is there any reason to have a shebang pointing at /bin/sh rather than /bin/bash?
From this answer: the advantage of #!/usr/bin/env python is that it will use whatever python executable appears first in the user's $PATH. The disadvantage of #!/usr/bin/env python is that it will use whatever python executable appears first in the user's $PATH. This probably also applies to sh and bash.
Dec
23
awarded  Curious
Dec
22
awarded  Nice Question
Dec
22
awarded  Yearling
Dec
22
comment Is there any reason to have a shebang pointing at /bin/sh rather than /bin/bash?
@mikeserv I intended for this question to be more about best practices than opinion - and the answers so far are fairly subjective, at least IMO (no meta-humour intended!). I'm open to hearing more about whether or not, and why, this would qualify as opinion, though.
Dec
22
accepted Is there any reason to have a shebang pointing at /bin/sh rather than /bin/bash?
Dec
22
asked Is there any reason to have a shebang pointing at /bin/sh rather than /bin/bash?
Jul
6
awarded  Popular Question
Jun
2
accepted Setting backspace=2 in zsh with vi bindings
Jun
1
asked Setting backspace=2 in zsh with vi bindings
May
18
accepted How do I switch from Ubuntu desktop to Ubuntu server?
Jun
6
awarded  Scholar