muhyb@programming.dev to linuxmasterrace@feddit.deEnglish · 1 year agoFirst time installing a distro that came with zsh instead of bashi.imgur.comimagemessage-square31fedilinkarrow-up113arrow-down11file-text
arrow-up112arrow-down1imageFirst time installing a distro that came with zsh instead of bashi.imgur.commuhyb@programming.dev to linuxmasterrace@feddit.deEnglish · 1 year agomessage-square31fedilinkfile-text
minus-squareThaurin@lemmy.worldlinkfedilinkEnglisharrow-up1·edit-21 year agoI mean, doesn’t the script have a hash bang pointing to the bash interpreter? #!/usr/bin/bash Or you can just run it like: bash script.sh
minus-squaresamsy@feddit.delinkfedilinkEnglisharrow-up1·1 year agoI know, well the lazyness is strong in me. Copy and paste.
minus-squareThaurin@lemmy.worldlinkfedilinkEnglisharrow-up1·edit-21 year agoHuh. It’s the first thing I write in any script. It actually saves me time. What annoys me is a script that doesn’t have a hash bang. :)
minus-squareZucca@sopuli.xyzlinkfedilinkEnglisharrow-up1·1 year ago#!/usr/bin/env bash for compability. 😉 For example on my system bash is in /bin.
minus-squareThaurin@lemmy.worldlinkfedilinkEnglisharrow-up1·1 year agoRight, of course. I already do that with Python scripts, but with bash old habits die hard, I guess. :)
I mean, doesn’t the script have a hash bang pointing to the bash interpreter?
Or you can just run it like:
I know, well the lazyness is strong in me. Copy and paste.
Huh. It’s the first thing I write in any script. It actually saves me time. What annoys me is a script that doesn’t have a hash bang. :)
#!/usr/bin/env bash
for compability. 😉For example on my system bash is in /bin.
Right, of course. I already do that with Python scripts, but with bash old habits die hard, I guess. :)