System - Bash à l'air maussade

Shells alternatifs

env dans le shebang ?

https://stackoverflow.com/questions/16365130/what-is-the-difference-between-usr-bin-env-bash-and-usr-bin-bash

#!/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 : Agencements du clavier avec XKB, 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, proxmox, SSH, sudo, Swap a déçu, systemd, Wifi, Windows, ZFS