1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
./history.tests: line 4: history: -x: invalid option
history: usage: history [-c] [-d offset] [n] or history -anrw [filename] or history -ps arg [arg...]
./history.tests: line 6: history: cannot use more than one of -anrw
./history.tests: line 9: fc: -v: invalid option
fc: usage: fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command]
1 for i in one two three; do echo $i; done
2 /bin/sh -c 'echo this is $0'
3 ls
4 echo $BASH_VERSION
1 for i in one two three; do echo $i; done
2 /bin/sh -c 'echo this is $0'
3 ls
4 echo $BASH_VERSION
for i in one two three; do echo $i; done
/bin/sh -c 'echo this is $0'
ls
echo $BASH_VERSION
4 echo $BASH_VERSION
3 ls
2 /bin/sh -c 'echo this is $0'
1 for i in one two three; do echo $i; done
echo $BASH_VERSION
ls
/bin/sh -c 'echo this is $0'
for i in one two three; do echo $i; done
1 for i in one two three; do echo $i; done
2 /bin/sh -c 'echo this is $0'
3 ls
4 echo $BASH_VERSION
5 echo line for history
echo line for history
for i in one two three; do echo $i; done
/bin/sh -c 'echo this is $0'
ls
echo $BASH_VERSION
echo line for history
displaying $HISTFILE after history -a
echo line for history
HISTFILE=$TMPDIR/newhistory
1 for i in one two three; do echo $i; done
2 /bin/sh -c 'echo this is $0'
3 ls
4 echo $BASH_VERSION
5 echo line for history
6 HISTFILE=$TMPDIR/newhistory
7 echo displaying \$HISTFILE after history -a
8 cat $HISTFILE
for i in one two three; do echo $i; done
/bin/sh -c 'echo this is $0'
ls
echo $BASH_VERSION
echo line for history
HISTFILE=$TMPDIR/newhistory
echo displaying \$HISTFILE after history -a
cat $HISTFILE
1 for i in one two three; do echo $i; done
2 /bin/sh -c 'echo this is $0'
3 ls
4 echo $BASH_VERSION
5 echo line for history
6 HISTFILE=$TMPDIR/newhistory
7 echo displaying \$HISTFILE after history -a
8 cat $HISTFILE
9 echo line 2 for history
echo line 2 for history
echo line 2 for history
1 for i in one two three; do echo $i; done
2 /bin/sh -c 'echo this is $0'
3 ls
4 echo $BASH_VERSION
5 echo line for history
6 HISTFILE=$TMPDIR/newhistory
7 echo displaying \$HISTFILE after history -a
8 cat $HISTFILE
9 echo line 2 for history
10 # this should show up as one history entry
11 for x in one two three; do :; done
set -H
echo line 2 for history
line 2 for history
4 echo $BASH_VERSION
5 echo line for history
6 HISTFILE=$TMPDIR/newhistory
7 echo displaying \$HISTFILE after history -a
8 cat $HISTFILE
9 echo line 2 for history
10 # this should show up as one history entry
11 for x in one two three; do :; done
12 # just a basic test. a full test suite for history expansion should be
13 # created
14 set -H
15 echo line 2 for history
16 unset HISTSIZE
17 unset HISTFILE
4 echo $BASH_VERSION
5 echo line for history
6 HISTFILE=$TMPDIR/newhistory
7 echo displaying \$HISTFILE after history -a
8 cat $HISTFILE
./history.tests: line 76: fc: history specification out of range
14 set -H
15 echo line 2 for history
16 unset HISTSIZE
17 unset HISTFILE
aa ab ac
echo xx xb xc
xx xb xc
echo 44 48 4c
44 48 4c
./history.tests: line 91: fc: no command found
aa
bb
cc
echo cc
echo cc
cc
aa
bb
cc
echo cc
echo cc
cc
1
one
two
three
1 cat <<!
one
two
three
!
2 history
cat <<!
one
two
three
!
one
two
three
5.0
echo ${BASH_VERSION%\.*}
5.0
echo ${BASH_VERSION%\.*}
a
b
c
d
e
1 echo a
2 echo b
3 echo c
4 echo d
5 echo e
1 echo a
2 echo e
f
g
h
i
1 echo a
2 echo e
3 echo f
4 echo g
5 echo h
./history3.sub: line 27: history: 16: history position out of range
./history3.sub: line 28: history: 200: history position out of range
./history3.sub: line 29: history: -20: history position out of range
./history3.sub: line 30: history: -50: history position out of range
./history3.sub: line 31: history: 5-0xaf: history position out of range
1 echo a
2 echo e
3 echo f
4 echo g
5 echo h
|