"Fossies" - the Fresh Open Source Software Archive

Member "dsh-0.25.10/tests/param-r-invalid.sh" (7 Jun 2003, 952 Bytes) of package /linux/misc/old/dsh-0.25.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 # test to check that -rinvalidsomething errors out
    3 
    4 ./dsh -w -r ./invalid-exec-file -m a,b,c,d
    5 case $? in
    6     1)
    7     echo success
    8     ;;
    9     *) 
   10     echo fail
   11     exit 1;
   12     ;;
   13 esac
   14 
   15 ./dsh -c -r ./invalid-exec-file -m a,b,c,d
   16 case $? in
   17     1)
   18     echo success
   19     ;;
   20     *) 
   21     echo fail
   22     exit 1;
   23     ;;
   24 esac
   25 
   26 ./dsh -w -r true -m a,b,c,d
   27 case $? in
   28     0)
   29     echo success
   30     ;;
   31     *) 
   32     echo fail
   33     exit 1;
   34     ;;
   35 esac
   36 
   37 
   38 ./dsh -w -M -r true -m a,b,c,d
   39 case $? in
   40     0)
   41     echo success
   42     ;;
   43     *) 
   44     echo fail
   45     exit 1;
   46     ;;
   47 esac
   48 
   49 ./dsh -c -r true -m a,b,c,d
   50 case $? in
   51     0)
   52     echo success
   53     ;;
   54     *) 
   55     echo fail
   56     exit 1;
   57     ;;
   58 esac
   59 
   60 
   61 ./dsh -c -M -r true -m a,b,c,d
   62 case $? in
   63     0)
   64     echo success
   65     ;;
   66     *) 
   67     echo fail
   68     exit 1;
   69     ;;
   70 esac
   71 
   72 ./dsh -c -M -r ./invalid-exec-file -m a,b,c,d
   73 case $? in
   74     1)
   75     echo success
   76     ;;
   77     *) 
   78     echo fail
   79     exit 1;
   80     ;;
   81 esac
   82 
   83 
   84 ./dsh -c -r ./invalid-exec-file -m a,b,c,d
   85 case $? in
   86     1)
   87     echo success
   88     ;;
   89     *) 
   90     echo fail
   91     exit 1;
   92     ;;
   93 esac
   94 
   95