Annotation of researchv8dc/cmd/wwb/wwbhelp.sh, revision 1.1

1.1     ! root        1: # NOTICE-NOT TO BE DISCLOSED OUTSIDE BELL SYS EXCEPT UNDER WRITTEN AGRMT
        !             2: L=/usr/lib/style
        !             3: for i in $*
        !             4:        do case $i in
        !             5:                -ver) echo $0 version 2.0:: 2.0;exit;;
        !             6:                -flags) echo $0 \[-ver\] \[-flags\] \[word or part of word ..\];exit;;
        !             7:                -*) echo unknown wwbhelp flag $i;exit;;
        !             8:        esac
        !             9: done
        !            10: if test $# = 0
        !            11: then
        !            12:        echo -e         'When you see the ">" sign, type the word you wish to have
        !            13: more information for.  When you wish to stop, type q.
        !            14: 
        !            15: If no information appears, either your word is misspelled or
        !            16: it is not included in the help file.\n'
        !            17:        while echo -e ">\c";read word
        !            18:                if test \( "$word" = 'q' -o "$word" = '.' -o "$word" = '' \)
        !            19:                then    exit
        !            20:                fi
        !            21:                do
        !            22:                        worduncap=`echo $word|tr [A-Z] [a-z]`
        !            23:                         grep "$worduncap" $L/helplist.d
        !            24:                done
        !            25: else   echo -e 'If no information appears, either your word is misspelled or
        !            26: it is not included in the help file.\n'
        !            27:        while test "$1"
        !            28:                do
        !            29:                        worduncap=`echo $1|tr [A-Z] [a-z]`
        !            30:                         grep "$worduncap" $L/helplist.d
        !            31:                        shift
        !            32:                done
        !            33:        exit
        !            34: fi

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.