File: search.cmd

package info (click to toggle)
bashdb 4.0.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 4,820 kB
  • ctags: 942
  • sloc: sh: 10,581; lisp: 885; makefile: 449; ansic: 325
file content (32 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (2)
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
set trace-commands on
# Test 'search' command
#
###  Try a forward search /x. Should not be the same line ...
/x
###  Try a backward search ?fn1? ...
?fn1?
###  Try another backward search ? Should not be the same line ...
?
###  Above search should reset list line below list start.
###  Should get same line as line above...
list
###  Try forward search /fn1/. Should be line we got command before last ...
/fn1/
###  Try a backward search ?fn3? ...
?fn3?
###  Reset line back to begining ...
list 1
###  Try alternate search form: search /fn1/
search /fn1/
list 1
###  Try alternate search form: search fn3
search fn3
###  Try backward and forward last search...
?
/
###  Try alternate search form: rev fn3
rev fn3
###  Search for something not there...
search foobar1111
quit