Branch: Tag:

1998-10-21

1998-10-21 21:48:21 by Marcus Comstedt <marcus@mc.pp.se>

Support for -p added.

Rev: NT/tools/uname:1.4

5:   M=no   N=no   S=no + P=no      for a in "$@"   do
15:    ;;       --help) -  echo "Usage: uname [-a] [-m] [-n] [-r] [-s] [-v]" +  echo "Usage: uname [-a] [-m] [-n] [-p] [-r] [-s] [-v]"    exit 0    ;;    -  --all) M=yes ; N=yes ; S=yes ;; +  --all) M=yes ; N=yes ; S=yes ; P=yes ;;    --machine) M=yes ;;    --nodename) N=yes ;;    --sysname) S=yes ;; -  +  --processor) P=yes ;;       --*)    echo "Unknown option $a"
39:    esac       case "$a" in +  *p*) P=yes ;; +  esac +  +  case "$a" in    *s*) S=yes ;;    esac   
50:    esac   done    - if [ $M$N$S = nonono ]; then + if [ $M$N$S$P = nononono ]; then    S=yes   fi   
69:    OUTPUT="$OUTPUT `getntenv PROCESSOR_ARCHITECTURE`"   fi    + if [ $P = yes ]; then +  OUTPUT="$OUTPUT `getntenv PROCESSOR_ARCHITECTURE`" + fi +    echo $OUTPUT      exit 0