Annotation of home/as/.csh/rcdgetconfigarg.sh, revision 1.1

1.1     ! as          1: #!/bin/sh
        !             2: # $Paefchen$
        !             3: 
        !             4: if [ $# = "0" ] 
        !             5: then
        !             6:        sets=`awk -F = '{print $1}' | tr "\n" ' '`
        !             7: fi
        !             8: 
        !             9: if [ -r /etc/defaults/rc.conf ]
        !            10: then
        !            11:        . /etc/defaults/rc.conf
        !            12:        source_rc_confs
        !            13: elif [ -r /etc/rc.conf ]
        !            14: then
        !            15:        . /etc/rc.conf
        !            16: fi
        !            17: 
        !            18: if [ $# = "0" ]
        !            19: then
        !            20:        set | while read line
        !            21:        do
        !            22:                echo "var: $line"
        !            23:        done
        !            24: else
        !            25:        for arg in $*
        !            26:        do
        !            27:                echo $(eval echo \$`echo $arg`)
        !            28:        done
        !            29: fi