|
|
1.1 root 1:
2:
3: fc Command fc
4:
5:
6:
7:
8: Edit and re-execute one or more previous commands
9:
10: ffcc [-llnn] [_f_i_r_s_t [_l_a_s_t]]
11: ffcc -ss [_o_l_d=_n_e_w] [_c_o_m_m_a_n_d]"
12:
13: ffcc, the ``fix command'', is a command built into the Korn shell
14: kksshh. It permits you to edit and re-execute one or more commands
15: that have been executed previously.
16:
17: ffcc has two forms, as shown above. The first version selects
18: commands _f_i_r_s_t through _l_a_s_t and inserts them into a text editor.
19: You can edit the commands in the editor; exiting from the editor
20: re-executes the edited commands.
21:
22: _f_i_r_s_t and _l_a_s_t can be addressed either by the command's number
23: (the first command issued to the shell is number one, the second
24: is number two, and so on), or by a string that matches the
25: beginning of the command. The editor used is the one set in the
26: environmental variable FFCCEEDDIITT (default, eedd).
27:
28: When called without a _l_a_s_t variable, the command selects just
29: _f_i_r_s_t. Option -ll prints the commands on the standard output
30: rather than buffering the commands for editing and re-execution.
31: Option -nn suppresses the default command numbers.
32:
33: The second form of the ffcc command substitutes string _n_e_w for
34: string _o_l_d within _c_o_m_m_a_n_d, then re-executes it. _c_o_m_m_a_n_d can be
35: addressed either by its number or by a string that matches its
36: beginning. If no _c_o_m_m_a_n_d is specified, it re-executes the
37: previous command.
38:
39: ***** See Also *****
40:
41: ccoommmmaannddss, FFCCEEDDIITT, kksshh
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64: COHERENT Lexicon Page 1
65:
66:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.