summaryrefslogtreecommitdiffhomepage
path: root/tests/linux/i-history.exp
blob: d1002e212e5714ba49563dac75e12b35b8f601cb (plain)
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
$ echo from-file
from-file
$ echo one
one
$ echo two
two
$ echo two
two
$ echo one
one
$ echo cancelled
cancelled
$ for i in a b
> do echo $i
> done
a
b
$ fc -l
1	echo from-file
2	echo one
3	echo two
4	echo one
5	echo cancelled
6	for i in a b
	do echo $i
	done
$ fc -ln -2
	for i in a b
	do echo $i
	done
	fc -l
$ fc -s one=uno echo\ one
echo uno
uno
$ fc -s
echo uno
uno
$ FCEDIT=true; fc -e true echo
echo uno
uno
$ echo ' not recorded twice'
 not recorded twice
$ echo ' not recorded twice'
 not recorded twice
$ fc -l -1
10	echo ' not recorded twice'
$ exit
--- saved:
echo ' not recorded twice'
fc -l -1
exit
[status 0]