| 1 | echo $BASH_VERSION
|
|---|
| 2 | ./histexp.tests: line 24: history: !!:z: history expansion failed
|
|---|
| 3 | 1 for i in one two three; do echo $i; done
|
|---|
| 4 | 2 /bin/sh -c 'echo this is $0'
|
|---|
| 5 | 3 ls
|
|---|
| 6 | 4 echo $BASH_VERSION
|
|---|
| 7 | 1 for i in one two three; do echo $i; done
|
|---|
| 8 | 2 /bin/sh -c 'echo this is $0'
|
|---|
| 9 | 3 ls
|
|---|
| 10 | 4 echo $BASH_VERSION
|
|---|
| 11 | 5 HISTFILE=/tmp/newhistory
|
|---|
| 12 | 6 echo line 2 for history
|
|---|
| 13 | echo line 2 for history
|
|---|
| 14 | echo line 2 for history
|
|---|
| 15 | set -H
|
|---|
| 16 | echo line 2 for history
|
|---|
| 17 | line 2 for history
|
|---|
| 18 | 1 for i in one two three; do echo $i; done
|
|---|
| 19 | 2 /bin/sh -c 'echo this is $0'
|
|---|
| 20 | 3 ls
|
|---|
| 21 | 4 echo $BASH_VERSION
|
|---|
| 22 | 5 HISTFILE=/tmp/newhistory
|
|---|
| 23 | 6 echo line 2 for history
|
|---|
| 24 | 7 set -H
|
|---|
| 25 | 8 echo line 2 for history
|
|---|
| 26 | a b c d e
|
|---|
| 27 | echo a b c d e
|
|---|
| 28 | a b c d e
|
|---|
| 29 | echo line 2 for history
|
|---|
| 30 | line 2 for history
|
|---|
| 31 | echo line 8 for history
|
|---|
| 32 | line 8 for history
|
|---|
| 33 | /bin/sh -c 'echo this is $0'
|
|---|
| 34 | this is /bin/sh
|
|---|
| 35 | echo sh
|
|---|
| 36 | sh
|
|---|
| 37 | echo /bin
|
|---|
| 38 | /bin
|
|---|
| 39 | echo e
|
|---|
| 40 | e
|
|---|
| 41 | a b c d e
|
|---|
| 42 | echo b c d e
|
|---|
| 43 | b c d e
|
|---|
| 44 | echo b c d
|
|---|
| 45 | b c d
|
|---|
| 46 | echo d e
|
|---|
| 47 | d e
|
|---|
| 48 | echo d e
|
|---|
| 49 | d e
|
|---|
| 50 | echo b c d
|
|---|
| 51 | b c d
|
|---|
| 52 | file.c
|
|---|
| 53 | echo file
|
|---|
| 54 | file
|
|---|
| 55 | echo .c
|
|---|
| 56 | .c
|
|---|
| 57 | echo 'file'
|
|---|
| 58 | file
|
|---|
| 59 | bax.c
|
|---|
| 60 | echo $file
|
|---|
| 61 | bax
|
|---|
| 62 | echo .c
|
|---|
| 63 | .c
|
|---|
| 64 | echo '$file'
|
|---|
| 65 | $file
|
|---|
| 66 | a b c d e
|
|---|
| 67 | echo 'a' 'b' 'c' 'd' 'e'
|
|---|
| 68 | a b c d e
|
|---|
| 69 | echo 'a b c d e'
|
|---|
| 70 | a b c d e
|
|---|
| 71 | foo.c foo.o foo.html foo.h
|
|---|
| 72 | echo bar.c foo.o foo.html foo.h
|
|---|
| 73 | bar.c foo.o foo.html foo.h
|
|---|
| 74 | echo bar.c bar.o bar.html bar.h
|
|---|
| 75 | bar.c bar.o bar.html bar.h
|
|---|
| 76 | echo xbar.c xbar.o xbar.html xbar.h
|
|---|
| 77 | xbar.c xbar.o xbar.html xbar.h
|
|---|
| 78 | echo xbar.c xbar.o xbar.html xbar.h
|
|---|
| 79 | xbar.c xbar.o xbar.html xbar.h
|
|---|
| 80 | echo xwhix.c xwhix.o xwhix.html xwhix.h
|
|---|
| 81 | xwhix.c xwhix.o xwhix.html xwhix.h
|
|---|
| 82 | echo xwhix.c xwhix.o xwhix.html xwhix.h
|
|---|
| 83 | echo 'xwhix'
|
|---|
| 84 | xwhix
|
|---|
| 85 | echo 'xwhix.h'
|
|---|
| 86 | xwhix.h
|
|---|
| 87 | echo 'xwhix.h'
|
|---|
| 88 | xwhix.h
|
|---|
| 89 | echo 'xwhix.h'
|
|---|
| 90 | xwhix.h
|
|---|
| 91 | 7 set -H
|
|---|
| 92 | 8 echo line 2 for history
|
|---|
| 93 | 9 echo a b c d e
|
|---|
| 94 | 10 echo line 2 for history
|
|---|
| 95 | 11 echo line 8 for history
|
|---|
| 96 | 12 /bin/sh -c 'echo this is $0'
|
|---|
| 97 | 13 echo sh
|
|---|
| 98 | 14 echo /bin
|
|---|
| 99 | 15 echo e
|
|---|
| 100 | 16 echo a b c d e
|
|---|
| 101 | 17 echo b c d e
|
|---|
| 102 | 18 echo b c d
|
|---|
| 103 | 19 echo d e
|
|---|
| 104 | 20 echo b c d
|
|---|
| 105 | 21 echo file.c
|
|---|
| 106 | 22 echo file
|
|---|
| 107 | 23 echo .c
|
|---|
| 108 | 24 echo 'file'
|
|---|
| 109 | 25 echo $file.c
|
|---|
| 110 | 26 echo $file
|
|---|
| 111 | 27 echo .c
|
|---|
| 112 | 28 echo '$file'
|
|---|
| 113 | 29 echo a b c d e
|
|---|
| 114 | 30 echo 'a' 'b' 'c' 'd' 'e'
|
|---|
| 115 | 31 echo 'a b c d e'
|
|---|
| 116 | 32 echo foo.c foo.o foo.html foo.h
|
|---|
| 117 | 33 echo bar.c foo.o foo.html foo.h
|
|---|
| 118 | 34 echo bar.c bar.o bar.html bar.h
|
|---|
| 119 | 35 echo xbar.c xbar.o xbar.html xbar.h
|
|---|
| 120 | 36 echo xwhix.c xwhix.o xwhix.html xwhix.h
|
|---|
| 121 | 37 echo 'xwhix'
|
|---|
| 122 | 38 echo 'xwhix.h'
|
|---|
| 123 | !!
|
|---|
| 124 | !!
|
|---|
| 125 | echo '!!' \!\!
|
|---|
| 126 | !! !!
|
|---|
| 127 | ok 1
|
|---|
| 128 | ok 2
|
|---|
| 129 | ok 3
|
|---|