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
|
(dbg-test1.sh:22):
22: x=22
+# Test 'search' command
+#
+### Try a forward search /x. Should not be the same line ...
+/x
25: ((x += i))
+### Try a backward search ?fn1? ...
+?fn1?
6: echo "fn1 here"
+### Try another backward search ? Should not be the same line ...
+?
5: fn1() {
+### Above search should reset list line below list start.
+### Should get same line as line above...
+list
22:==>x=22
23: y=23
24: for i in 0 1 3 ; do
25: ((x += i))
26: done
27: x=27
28: y=b
29: x=29
30: echo $(fn3 30)
31: fn3 31
+### Try forward search /fn1/. Should be line we got command before last ...
+/fn1/
search pattern: fn1 not found.
+### Try a backward search ?fn3? ...
+?fn3?
31: fn3 31
+### Reset line back to begining ...
+list 1
1: #!/usr/bin/env bash
2: # Note: no CVS Id line since it would mess up regression testing.
3: # This code is used for various debugger testing.
4:
5: fn1() {
6: echo "fn1 here"
7: x=5
8: fn3
9: }
10:
+### Try alternate search form: search /fn1/
+search /fn1/
32: fn1;
+list 1
1: #!/usr/bin/env bash
2: # Note: no CVS Id line since it would mess up regression testing.
3: # This code is used for various debugger testing.
4:
5: fn1() {
6: echo "fn1 here"
7: x=5
8: fn3
9: }
10:
+### Try alternate search form: search fn3
+search fn3
17: fn3() {
+### Try backward and forward last search...
+?
8: fn3
+/
17: fn3() {
+### Try alternate search form: rev fn3
+rev fn3
8: fn3
+### Search for something not there...
+search foobar1111
search pattern: foobar1111 not found.
+quit
|