File: c_select.so

package info (click to toggle)
lookup 1.08b-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,112 kB
  • ctags: 1,306
  • sloc: ansic: 12,638; makefile: 245; perl: 174; sh: 53
file content (40 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (9)
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
.TP
select [ \fInum\fP | \fIname\fP | . ]
.br
If
.I num
is given, sets the
.I "default slot"
to that slot number.
If
.I name
is given, sets the
.I "default slot"
to the first slot found with a file (or combination) loaded with that name.
The incantation\c
.Q "select ."
merely sets the default slot to itself, which can be useful in script
files where you want to indicate that any subsequent flags changes should
work with whatever file was the default at the time the script was
.IR source d.

If no argument is given, simply reports the current
.I "default slot"
(also see the
.I files
command).

In command files loaded via the
.I source
command, or as the startup file,
commands dealing with per-slot items (flags, local prompt, filters, etc.)
work with the file or slot last
.IR select ed.
The last such selected slot remains selected once the load is complete.

Interactively, the default slot will become the
.I "selected slot"
for subsequent searches and commands that aren't augmented with
an appended\c
.Q ",#"
(as described in the INPUT SYNTAX section).