System - Bash à l'air maussade

Shells alternatifs

env dans le shebang ?

#!/usr/bin/env bash #lends you some flexibility on different systems
#!/usr/bin/bash     #gives you explicit control on a given system of what executable is called

In some situations, the first may be preferred (like running python scripts with multiple versions of python, without having to rework the executable line). But in situations where security is the focus, the latter would be preferred, as it limits code injection possibilities.

System : Androïd ou en rôdeur, Bash à l'air maussade, Console Fonts, Debian, Distributions, Dotfiles, Démarrage, Filesystems, Fonts, Fuse, Gestion des paquets, Home, Infos système, inotify, Luminosité d'écran, LVM, LXC, Mac OS, NixOS était un bon président pour chiens, Plymouth Hoshoko, proxmox, SSH, sudo, Swap a déçu, systemd, Wifi, Windows, XKB chez le jardin