Imported from ../bash-2.01.tar.gz.
[platform/upstream/bash.git] / tests / history.right
1     1  for i in one two three; do echo $i; done
2     2  /bin/sh -c 'echo this is $0'
3     3  ls
4     4  echo $BASH_VERSION
5 1        for i in one two three; do echo $i; done
6 2        /bin/sh -c 'echo this is $0'
7 3        ls
8 4        echo $BASH_VERSION
9          for i in one two three; do echo $i; done
10          /bin/sh -c 'echo this is $0'
11          ls
12          echo $BASH_VERSION
13 4        echo $BASH_VERSION
14 3        ls
15 2        /bin/sh -c 'echo this is $0'
16 1        for i in one two three; do echo $i; done
17          echo $BASH_VERSION
18          ls
19          /bin/sh -c 'echo this is $0'
20          for i in one two three; do echo $i; done
21     1  for i in one two three; do echo $i; done
22     2  /bin/sh -c 'echo this is $0'
23     3  ls
24     4  echo $BASH_VERSION
25     5  echo line for history
26 echo line for history
27          for i in one two three; do echo $i; done
28          /bin/sh -c 'echo this is $0'
29          ls
30          echo $BASH_VERSION
31          echo line for history
32 displaying $HISTFILE after history -a
33 echo line for history
34 HISTFILE=/tmp/newhistory
35     1  for i in one two three; do echo $i; done
36     2  /bin/sh -c 'echo this is $0'
37     3  ls
38     4  echo $BASH_VERSION
39     5  echo line for history
40     6  HISTFILE=/tmp/newhistory
41     7  echo displaying \$HISTFILE after history -a
42     8  cat $HISTFILE
43 for i in one two three; do echo $i; done
44 /bin/sh -c 'echo this is $0'
45 ls
46 echo $BASH_VERSION
47 echo line for history
48 HISTFILE=/tmp/newhistory
49 echo displaying \$HISTFILE after history -a
50 cat $HISTFILE
51     1  for i in one two three; do echo $i; done
52     2  /bin/sh -c 'echo this is $0'
53     3  ls
54     4  echo $BASH_VERSION
55     5  echo line for history
56     6  HISTFILE=/tmp/newhistory
57     7  echo displaying \$HISTFILE after history -a
58     8  cat $HISTFILE
59     9  echo line 2 for history
60 echo line 2 for history
61 echo line 2 for history
62     1  for i in one two three; do echo $i; done
63     2  /bin/sh -c 'echo this is $0'
64     3  ls
65     4  echo $BASH_VERSION
66     5  echo line for history
67     6  HISTFILE=/tmp/newhistory
68     7  echo displaying \$HISTFILE after history -a
69     8  cat $HISTFILE
70     9  echo line 2 for history
71    10  # this should show up as one history entry
72    11  for x in one two three; do       :; done
73 set -H
74 echo line 2 for history
75 line 2 for history
76 4        echo $BASH_VERSION
77 5        echo line for history
78 6        HISTFILE=/tmp/newhistory
79 7        echo displaying \$HISTFILE after history -a
80 8        cat $HISTFILE
81 9        echo line 2 for history
82 10       # this should show up as one history entry
83 11       for x in one two three; do     :; done
84 12       # just a basic test.  a full test suite for history expansion should be
85 13       # created
86 14       set -H
87 15       echo line 2 for history
88 16       unset HISTSIZE
89 17       unset HISTFILE
90 4        echo $BASH_VERSION
91 5        echo line for history
92 6        HISTFILE=/tmp/newhistory
93 7        echo displaying \$HISTFILE after history -a
94 8        cat $HISTFILE
95 ./history.tests: fc: history specification out of range
96    14  set -H
97    15  echo line 2 for history
98    16  unset HISTSIZE
99    17  unset HISTFILE
100 aa ab ac
101 echo xx xb xc
102 xx xb xc
103 ./history.tests: fc: no command found
104 1