isposix

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

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

posix.sh (333B)


      1 #! /bin/sh
      2 
      3 while getopts "o" opt; do
      4 	case "$opt" in
      5 		( o ) optflag=0;shift;;
      6   esac
      7 done
      8 
      9 if [ -f "/var/isposix/${1:?need command}.html" ];then
     10 	[ "$optflag" = "0" ] \
     11 		&& < "/var/isposix/$1.html" grep -E "<dt><b>-.[&<].*</dt>" | grep -o "\-." \
     12 		|| ${BROWSER:-w3m} "/var/isposix/$1.html"
     13 else
     14 	echo "$1 not a posix command"
     15 fi