isposix

Un outil pour savoir si une commande est posix - retour accueil

git clone git://bebou.netlib.re/isposix
Log | Files | Refs | README |

commit e166406740278a4ae4d5b1c0d6fdb2be21cbcc42
parent 4c14ca35f129012cf6bdcb6a6a84ac887be50515
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Mon, 25 Nov 2024 11:37:49 +0100

posix, vérifier si cmd existe avant de l'ouvrir

Diffstat:
Mposix.sh | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/posix.sh b/posix.sh @@ -1,3 +1,5 @@ #! /bin/sh -${BROWSER:-w3m} bdd/${1:?need command}.html +[ -f bdd/${1:?need command}.html ] \ + && ${BROWSER:-w3m} "bdd/$1.html" \ + || echo "$1 not a posix command"