Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-08-08·18:10:52.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-08-08·18:10:52.000000·debian-binary |
2 | -rw-r--r--···0········0········0······504·2024-08-08·18:10:52.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0······504·2024-08-08·18:10:52.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0····1 | 3 | -rw-r--r--···0········0········0····14348·2024-08-08·18:10:52.000000·data.tar.xz |
Offset 1, 17 lines modified | Offset 1, 17 lines modified | ||
1 | drwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./ | 1 | drwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ |
6 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 6 | -rw-r--r--···0·root·········(0)·root·········(0)····23827·2024-08-08·18:10:52.000000·./usr/share/man/man3/editline.3 |
7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ | 7 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ |
8 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····3598·2024-08-08·18:10:52.000000·./usr/share/man/man5/editrc.5 |
9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ | 9 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ |
10 | -rw-r--r--···0·root·········(0)·root·········(0)····33 | 10 | -rw-r--r--···0·root·········(0)·root·········(0)····33136·2024-08-08·18:10:52.000000·./usr/share/man/man7/editline.7 |
11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 | 11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 |
12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 | 12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 |
13 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 | 13 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 |
14 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 | 14 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 |
15 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 | 15 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 |
16 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 | 16 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 |
17 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 | 17 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 |
Offset 1, 1020 lines modified | Offset 1, 1172 lines modified | ||
1 | .TH·EDITLINE·3·"August·15,·2021"·"" | ||
1 | .\"» $NetBSD:·editline.3,v·1.102·2024/02/04·18:47:27·andvar·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2014·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·August·15,·2021 | ||
30 | .Dt·EDITLINE·3 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | .Nm·editline·, | ||
34 | .Nm·el_init·, | ||
35 | .Nm·el_init_fd·, | ||
36 | .Nm·el_end·, | ||
37 | .Nm·el_reset·, | ||
38 | .Nm·el_gets·, | ||
39 | .Nm·el_wgets·, | ||
40 | .Nm·el_getc·, | ||
41 | .Nm·el_wgetc·, | ||
42 | .Nm·el_push·, | ||
43 | .Nm·el_wpush·, | ||
44 | .Nm·el_parse·, | ||
45 | .Nm·el_wparse·, | ||
46 | .Nm·el_set·, | ||
47 | .Nm·el_wset·, | ||
48 | .Nm·el_get·, | ||
49 | .Nm·el_wget·, | ||
50 | .Nm·el_source·, | ||
51 | .Nm·el_resize·, | ||
52 | .Nm·el_cursor·, | ||
53 | .Nm·el_line·, | ||
54 | .Nm·el_wline·, | ||
55 | .Nm·el_insertstr·, | ||
56 | .Nm·el_winsertstr·, | ||
57 | .Nm·el_deletestr·, | ||
58 | .Nm·el_wdeletestr·, | ||
59 | .Nm·history_init·, | ||
60 | .Nm·history_winit·, | ||
61 | .Nm·history_end·, | ||
62 | .Nm·history_wend·, | ||
63 | .Nm·history·, | ||
64 | .Nm·history_w·, | ||
65 | .Nm·tok_init·, | ||
66 | .Nm·tok_winit·, | ||
67 | .Nm·tok_end·, | ||
68 | .Nm·tok_wend·, | ||
69 | .Nm·tok_reset·, | ||
70 | .Nm·tok_wreset·, | ||
71 | .Nm·tok_line·, | ||
72 | .Nm·tok_wline·, | ||
73 | .Nm·tok_str·, | ||
74 | 3 | \fBeditline\fP, | |
4 | \fBel_init\fP, | ||
5 | \fBel_init_fd\fP, | ||
6 | \fBel_end\fP, | ||
7 | \fBel_reset\fP, | ||
8 | \fBel_gets\fP, | ||
9 | \fBel_wgets\fP, | ||
10 | \fBel_getc\fP, | ||
11 | \fBel_wgetc\fP, | ||
12 | \fBel_push\fP, | ||
13 | \fBel_wpush\fP, | ||
14 | \fBel_parse\fP, | ||
15 | \fBel_wparse\fP, | ||
16 | \fBel_set\fP, | ||
17 | \fBel_wset\fP, | ||
18 | \fBel_get\fP, | ||
19 | \fBel_wget\fP, | ||
20 | \fBel_source\fP, | ||
21 | \fBel_resize\fP, | ||
22 | \fBel_cursor\fP, | ||
23 | \fBel_line\fP, | ||
24 | \fBel_wline\fP, | ||
25 | \fBel_insertstr\fP, | ||
26 | \fBel_winsertstr\fP, | ||
27 | \fBel_deletestr\fP, | ||
28 | \fBel_wdeletestr\fP, | ||
29 | \fBhistory_init\fP, | ||
30 | \fBhistory_winit\fP, | ||
31 | \fBhistory_end\fP, | ||
32 | \fBhistory_wend\fP, | ||
33 | \fBhistory\fP, | ||
34 | \fBhistory_w\fP, | ||
35 | \fBtok_init\fP, | ||
36 | \fBtok_winit\fP, | ||
37 | \fBtok_end\fP, | ||
38 | \fBtok_wend\fP, | ||
39 | \fBtok_reset\fP, | ||
40 | \fBtok_wreset\fP, | ||
41 | \fBtok_line\fP, | ||
42 | \fBtok_wline\fP, | ||
43 | \fBtok_str\fP, | ||
44 | \fBtok_wstr\fP | ||
75 | 45 | \-·line·editor,·history·and·tokenization·functions | |
76 | .S | 46 | .SH·LIBRARY |
77 | 47 | Command·Line·Editor·Library·(libedit,·-ledit) | |
78 | .S | 48 | .SH·SYNOPSIS |
79 | .In·histedit.h | ||
80 | .Ft·EditLine·* | ||
81 | .Fn·el_init·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr" | ||
82 | .Ft·EditLine·* | ||
83 | .Fn·el_init_fd·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr"·"int·fdin"·"int·fdout"·"int·fderr" | ||
84 | .Ft·void | ||
85 | .Fn·el_end·"EditLine·*e" | ||
... Open expanded diff ... |
Offset 1, 326 lines modified | Offset 1, 142 lines modified | ||
1 | .TH·EDITRC·5·"May·22,·2016"·"" | ||
1 | .\"» $NetBSD:·editrc.5,v·1.34·2022/12/06·00:59:20·uwe·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2000·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·May·22,·2016 | ||
30 | .Dt·EDITRC·5 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | 3 | \fBeditrc\fP | |
34 | 4 | \-·configuration·file·for·editline·library | |
35 | .S | 5 | .SH·SYNOPSIS |
36 | . | 6 | .br |
7 | \fBeditrc\fP | ||
37 | .S | 8 | .SH·DESCRIPTION |
38 | The | 9 | The |
39 | 10 | \fBeditrc\fP | |
40 | file·defines·various·settings·to·be·used·by·the | 11 | file·defines·various·settings·to·be·used·by·the |
41 | 12 | \fBeditline\fP(3) | |
42 | library. | 13 | library. |
43 | .Pp | ||
44 | The·format·of·each·line·is: | 14 | The·format·of·each·line·is: |
45 | .Pp | ||
46 | .D1·Oo·Ar·prog·Ns·Ic·\&:·Oc·Ns·Ar·command·Oo·Ar·arg·...·Oc | ||
47 | .Pp | ||
48 | .Ar·command | ||
49 | is·one·of·the | 15 | is·one·of·the |
50 | .Xr·editline·3 | ||
51 | builtin·commands. | 16 | builtin·commands. |
52 | Refer·to | 17 | Refer·to |
53 | .Sx·BUILTIN·COMMANDS | ||
54 | for·more·information. | 18 | for·more·information. |
55 | .Pp | ||
56 | .Ar·prog | ||
57 | is·the·program·name·string·that·a·program·defines·when·it·calls | 19 | is·the·program·name·string·that·a·program·defines·when·it·calls |
58 | .Xr·el_init·3 | ||
59 | to·set·up | 20 | to·set·up |
60 | .Xr·editline·3·, | ||
61 | which·is·usually | 21 | which·is·usually |
62 | .Va·argv·Ns·Li·[0]·. | ||
63 | .Ar·command | ||
64 | will·be·executed·for·any·program·which·matches | 22 | will·be·executed·for·any·program·which·matches |
65 | .Ar·prog·. | ||
66 | .Pp | ||
67 | .Ar·prog | ||
68 | may·also·be·a | 23 | may·also·be·a |
69 | .Xr·regex·3 | ||
70 | style | 24 | style |
71 | regular·expression,·in·which·case | 25 | regular·expression,·in·which·case |
72 | .Ar·command | ||
73 | will·be·executed·for·any·program·that·matches·the·regular·expression. | 26 | will·be·executed·for·any·program·that·matches·the·regular·expression. |
74 | .Pp | ||
75 | If | 27 | If |
76 | .Ar·prog | ||
77 | is·absent, | 28 | is·absent, |
78 | .Ar·command | ||
79 | is·executed·for·all·programs. | 29 | is·executed·for·all·programs. |
80 | .Sh·BUILTIN·COMMANDS | ||
81 | The | 30 | The |
82 | .Nm·editline | ||
83 | library·has·some·builtin·commands,·which·affect·the·way | 31 | library·has·some·builtin·commands,·which·affect·the·way |
84 | that·the·line·editing·and·history·functions·operate. | 32 | that·the·line·editing·and·history·functions·operate. |
85 | These·are·based·on·similar·named·builtins·present·in·the | 33 | These·are·based·on·similar·named·builtins·present·in·the |
86 | .Xr·tcsh·1 | ||
87 | shell. | 34 | shell. |
88 | .Pp | ||
89 | The·following·builtin·commands·are·available: | 35 | The·following·builtin·commands·are·available: |
90 | .Bl·-tag·-width·4n | ||
91 | .It·Ic·bind·Oo·Fl·aeklrsv·Oc·Op·Ar·key·Op·Ar·command | ||
92 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and | 36 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and |
93 | the·editor·command·or·input·string·to·which·each·one·is·bound. | 37 | the·editor·command·or·input·string·to·which·each·one·is·bound. |
94 | If·only | 38 | If·only |
95 | .Ar·key | ||
96 | is·supplied,·show·the·binding·for·that·key·or·macro. | 39 | is·supplied,·show·the·binding·for·that·key·or·macro. |
97 | If | 40 | If |
98 | .Ar·key·command | ||
99 | is·supplied,·bind·the·editor | 41 | is·supplied,·bind·the·editor |
100 | .Ar·command | ||
101 | to·that·key·or·macro. | 42 | to·that·key·or·macro. |
102 | .Pp | ||
103 | The·options·are·as·follows: | 43 | The·options·are·as·follows: |
104 | .Bl·-tag·-width·4n | ||
105 | .It·Fl·a | ||
106 | List·or·change·key·bindings·in·the | 44 | List·or·change·key·bindings·in·the |
107 | .Xr·vi·1 | ||
108 | mode·alternate·(command·mode)·key·map. | 45 | mode·alternate·(command·mode)·key·map. |
109 | .It·Fl·e | ||
110 | Bind·all·keys·to·the·standard | 46 | Bind·all·keys·to·the·standard |
111 | .Tn·GNU | ||
112 | Emacs-like·bindings. | 47 | Emacs-like·bindings. |
113 | .It·Fl·k | ||
114 | .Ar·key | ||
115 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of | 48 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of |
116 | .Ic·up·, | ||
117 | .Ic·down·, | ||
118 | .Ic·left | ||
119 | or | 49 | or |
120 | .Ic·right·. | ||
121 | .It·Fl·l | ||
122 | List·all·editor·commands·and·a·short·description·of·each. | 50 | List·all·editor·commands·and·a·short·description·of·each. |
123 | .It·Fl·r | ||
124 | Remove·the·binding·of·the·key·or·macro | 51 | Remove·the·binding·of·the·key·or·macro |
125 | .Ar·key·. | ||
... Open expanded diff ... |
Offset 1, 935 lines modified | Offset 1, 1001 lines modified | ||
1 | .TH·EDITLINE·7·"April·6,·2024"·"" | ||
1 | .\"» $NetBSD:·editline.7,v·1.6·2024/04/06·13:36:11·christos·Exp·$ | ||
2 | .\"» $OpenBSD:·editline.7,v·1.1·2016/04/20·01:11:45·schwarze·Exp·$ | ||
3 | .\" | ||
4 | .\"·Copyright·(c)·2016·Ingo·Schwarze·<schwarze@openbsd.org> | ||
5 | .\" | ||
6 | .\"·Permission·to·use,·copy,·modify,·and·distribute·this·software·for·any | ||
7 | .\"·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above | ||
8 | .\"·copyright·notice·and·this·permission·notice·appear·in·all·copies. | ||
9 | .\" | ||
10 | .\"·THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·THE·AUTHOR·DISCLAIMS·ALL·WARRANTIES | ||
11 | .\"·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF | ||
12 | .\"·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·THE·AUTHOR·BE·LIABLE·FOR | ||
13 | .\"·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES | ||
14 | .\"·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN | ||
15 | .\"·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF | ||
16 | .\"·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. | ||
17 | .\" | ||
18 | .Dd·April·6,·2024 | ||
19 | .Dt·EDITLINE·7 | ||
20 | .Os | ||
21 | .S | 2 | .SH·NAME |
22 | 3 | \fBeditline\fP | |
23 | 4 | \-·line·editing·user·interface | |
24 | .S | 5 | .SH·DESCRIPTION |
25 | When·a·program·using·the | 6 | When·a·program·using·the |
26 | 7 | \fBeditline\fP(3) | |
27 | library·prompts·for·an·input·string·using·the·function | 8 | library·prompts·for·an·input·string·using·the·function |
28 | 9 | \fBel_wgets\fP(3), | |
29 | it·reads·characters·from·the·terminal. | 10 | it·reads·characters·from·the·terminal. |
30 | Invalid·input·bytes·that·do·not·form·characters·are·silently | 11 | Invalid·input·bytes·that·do·not·form·characters·are·silently |
31 | discarded. | 12 | discarded. |
32 | For·each·character·read,·one·editor·command·is·executed. | 13 | For·each·character·read,·one·editor·command·is·executed. |
33 | The·mapping·of·input·characters·to·editor·commands·depends·on·the | 14 | The·mapping·of·input·characters·to·editor·commands·depends·on·the |
34 | editing·mode. | 15 | editing·mode. |
35 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, | 16 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, |
36 | and·emacs·mode. | 17 | and·emacs·mode. |
37 | The·default·is·vi·insert·mode. | 18 | The·default·is·vi·insert·mode. |
38 | The·program·can·switch·the·default·to·emacs·mode·by·using·the | 19 | The·program·can·switch·the·default·to·emacs·mode·by·using·the |
39 | 20 | \fBel_set\fP(3) | |
40 | or | 21 | or |
41 | 22 | \fBel_parse\fP(3) | |
42 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the | 23 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the |
43 | 24 | \fBeditrc\fP(5) | |
44 | configuration·file·or·interactively·with·the | 25 | configuration·file·or·interactively·with·the |
45 | 26 | \fBed-command\fP | |
46 | editor·command,·in·all·three·cases·executing·the | 27 | editor·command,·in·all·three·cases·executing·the |
47 | 28 | \fBbind·Fl·e\fP | |
48 | builtin·command. | 29 | builtin·command. |
49 | .Pp | ||
50 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an | 30 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an |
51 | error,·the·library·signals·end·of·file·to·the·program·and·does·not | 31 | error,·the·library·signals·end·of·file·to·the·program·and·does·not |
52 | return·a·string. | 32 | return·a·string. |
53 | .S | 33 | .SS·Input·character·bindings |
54 | All·default·bindings·described·below·can·be·overridden·by·individual | 34 | All·default·bindings·described·below·can·be·overridden·by·individual |
55 | programs·and·can·be·changed·with·the | 35 | programs·and·can·be·changed·with·the |
56 | .Xr·editrc·5 | ||
57 | 36 | \fBeditrc\fP(5) | |
37 | \fBbind\fP | ||
58 | builtin·command. | 38 | builtin·command. |
59 | .Pp | ||
60 | In·the·following·tables, | 39 | In·the·following·tables, |
61 | 40 | `Ctrl-' | |
62 | indicates·a·character·with·the·bit·0x40·flipped,·and | 41 | indicates·a·character·with·the·bit·0x40·flipped,·and |
63 | 42 | `Meta-' | |
64 | indicates·a·character·with·the·bit·0x80·set. | 43 | indicates·a·character·with·the·bit·0x80·set. |
65 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered | 44 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered |
66 | printable·by·the·current | 45 | printable·by·the·current |
67 | 46 | \fBlocale\fP(1) | |
68 | are·bound·to | 47 | are·bound·to |
69 | 48 | \fBed-insert\fP | |
70 | instead·of·to·the·editor·command·listed·below. | 49 | instead·of·to·the·editor·command·listed·below. |
71 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not | 50 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not |
72 | directly·accessible·because·their·code·points·are·occupied·by | 51 | directly·accessible·because·their·code·points·are·occupied·by |
73 | printable·Unicode·characters,·and·Meta-characters·are·usually·input | 52 | printable·Unicode·characters,·and·Meta-characters·are·usually·input |
74 | using·the | 53 | using·the |
75 | 54 | \fBem-meta-next\fP | |
76 | editor·command. | 55 | editor·command. |
77 | For·example,·to·enter | 56 | For·example,·to·enter |
78 | 57 | `Meta-B' | |
79 | in·order·to·call·the | 58 | in·order·to·call·the |
80 | 59 | \fBed-prev-word\fP | |
81 | editor·command·in·emacs·mode,·call | 60 | editor·command·in·emacs·mode,·call |
82 | 61 | \fBem-meta-next\fP | |
83 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), | 62 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), |
84 | then·press·and·release·the | 63 | then·press·and·release·the |
85 | 64 | `B' | |
86 | key. | 65 | key. |
87 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example | 66 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example |
88 | with | 67 | with |
89 | 68 | `setxkbmap'·-option·altwin:left_meta_win·, | |
90 | the·Ctrl-Meta-characters·are·directly·accessible. | 69 | the·Ctrl-Meta-characters·are·directly·accessible. |
91 | For·example,·to·enter | 70 | For·example,·to·enter |
92 | 71 | `Ctrl-Meta-H' | |
93 | in·order·to·call·the | 72 | in·order·to·call·the |
94 | 73 | \fBed-delete-prev-word\fP | |
95 | editor·command·in·emacs·mode,·hold·down·the·keys | 74 | editor·command·in·emacs·mode,·hold·down·the·keys |
96 | .Sq·Ctrl·, | ||
97 | 75 | `Ctrl', | |
76 | `Meta', | ||
98 | and | 77 | and |
99 | 78 | `H' | |
100 | at·the·same·time. | 79 | at·the·same·time. |
101 | Alternatively,·press·and·release·the·escape·key,·then·press·and | 80 | Alternatively,·press·and·release·the·escape·key,·then·press·and |
102 | release | 81 | release |
103 | .Sq·Ctrl-H·. | ||
104 | 82 | `Ctrl-H'. | |
105 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor | 83 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor |
106 | commands·by·default: | 84 | commands·by·default: |
107 | .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history" | ||
108 | 85 | It·Ctrl-D,·EOF·Ta·\fBvi-list-or-eof\fP | |
109 | 86 | It·Ctrl-H,·BS·Ta·\fBvi-delete-prev-char\fP | |
110 | 87 | It·Ctrl-J,·LF·Ta·\fBed-newline\fP | |
111 | 88 | It·Ctrl-M,·CR·Ta·\fBed-newline\fP | |
112 | 89 | It·Ctrl-Q·Ta·\fBed-tty-start-output\fP | |
113 | 90 | It·Ctrl-S·Ta·\fBed-tty-stop-output\fP | |
114 | 91 | It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP | |
115 | 92 | It·Ctrl-V·Ta·\fBed-quoted-insert\fP | |
116 | 93 | It·Ctrl-W·Ta·\fBed-delete-prev-word\fP | |
117 | 94 | It·Ctrl-[,·ESC·Ta·\fBvi-command-mode\fP | |
118 | 95 | It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP | |
119 | 96 | It·Ctrl-?,·DEL·Ta·\fBvi-delete-prev-char\fP | |
120 | .El | ||
121 | .Pp | ||
122 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are | 97 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are |
... Open expanded diff ... |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-07-08·23:28:24.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-07-08·23:28:24.000000·debian-binary |
2 | -rw-r--r--···0········0········0······584·2024-07-08·23:28:24.000000·control.tar.xz | 2 | -rw-r--r--···0········0········0······584·2024-07-08·23:28:24.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0····10 | 3 | -rw-r--r--···0········0········0····10476·2024-07-08·23:28:24.000000·data.tar.xz |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | drwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./ | 1 | drwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/ |
5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/man1/ | 5 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/man1/ |
6 | -rw-r--r--···0·root·········(0)·root·········(0)·····3 | 6 | -rw-r--r--···0·root·········(0)·root·········(0)·····3161·2024-07-08·23:28:24.000000·./usr/share/man/man1/erb.1 |
7 | -rw-r--r--···0·root·········(0)·root·········(0)·····49 | 7 | -rw-r--r--···0·root·········(0)·root·········(0)·····4939·2024-07-08·23:28:24.000000·./usr/share/man/man1/irb.1 |
8 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 8 | -rw-r--r--···0·root·········(0)·root·········(0)·····4911·2024-07-08·23:28:24.000000·./usr/share/man/man1/ri.1 |
9 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 9 | -rw-r--r--···0·root·········(0)·root·········(0)····20580·2024-07-08·23:28:24.000000·./usr/share/man/man1/ruby.1 |
Offset 1, 160 lines modified | Offset 1, 184 lines modified | ||
1 | .TH·ERB·\&1·"Ruby·Programmer's·Reference·Guide"·"December·16,·2018"·"UNIX" | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·December·16,·2018 | ||
3 | .Dt·ERB·\&1·"Ruby·Programmer's·Reference·Guide" | ||
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBerb\fP | |
7 | 4 | \-·Ruby·Templating | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-version | ||
11 | .Op·Fl·UPdnvx | ||
12 | .Op·Fl·E·Ar·ext·Ns·Op·Ns·:·Ns·int | ||
13 | .Op·Fl·S·Ar·level | ||
14 | .Op·Fl·T·Ar·mode | ||
15 | .Op·Fl·r·Ar·library | ||
16 | .Op·Fl·- | ||
17 | .Op·file·... | ||
18 | . | 6 | .br |
7 | \fBerb\fP | ||
8 | [\fB\--version\fP] | ||
9 | [\fB\-UPdnvx\fP] | ||
10 | [\fB\-E\fP·\fIext\fP[:int]] | ||
11 | [\fB\-S\fP·\fIlevel\fP] | ||
12 | [\fB\-T\fP·\fImode\fP] | ||
13 | [\fB\-r\fP·\fIlibrary\fP] | ||
14 | [\fB\--\fP] | ||
15 | [file·...] | ||
19 | .S | 16 | .SH·DESCRIPTION |
20 | 17 | \fBerb\fP | |
21 | is·a·command·line·front-end·for | 18 | is·a·command·line·front-end·for |
22 | 19 | "ERB" | |
23 | library,·which·is·an·implementation·of·eRuby. | 20 | library,·which·is·an·implementation·of·eRuby. |
24 | .Pp | ||
25 | ERB·provides·an·easy·to·use·but·powerful·templating·system·for·Ruby. | 21 | ERB·provides·an·easy·to·use·but·powerful·templating·system·for·Ruby. |
26 | Using·ERB,·actual·Ruby·code·can·be·added·to·any·plain·text·document·for·the | 22 | Using·ERB,·actual·Ruby·code·can·be·added·to·any·plain·text·document·for·the |
27 | purposes·of·generating·document·information·details·and/or·flow·control. | 23 | purposes·of·generating·document·information·details·and/or·flow·control. |
28 | .Pp | ||
29 | .Nm | ||
24 | \fBerb\fP | ||
30 | is·a·part·of | 25 | is·a·part·of |
31 | .Nm·Ruby·. | ||
32 | 26 | \fBRuby\fP. | |
33 | .S | 27 | .SH·OPTIONS |
34 | .Bl·-tag·-width·"1234567890123"·-compact | ||
35 | .Pp | ||
36 | .It·Fl·-version | ||
28 | .TP | ||
29 | \fB\--version\fP | ||
37 | Prints·the·version·of | 30 | Prints·the·version·of |
38 | .Nm·. | ||
39 | .Pp | ||
40 | .It·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
41 | 31 | \fB.\fP | |
32 | .TP | ||
33 | \fB\-E\fP·\fIexternal\fP[:\fIinternal\fP] | ||
34 | .TP | ||
35 | \fB\--encoding\fP·\fIexternal\fP[:\fIinternal\fP] | ||
42 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). | 36 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). |
43 | .Pp | ||
44 | You·can·omit·the·one·for·internal·encodings,·then·the·value | 37 | You·can·omit·the·one·for·internal·encodings,·then·the·value |
45 | 38 | ("Encoding.default_internal")·will·be·nil. | |
46 | .Pp | ||
47 | .It·Fl·P | ||
39 | .TP | ||
40 | \fB\-P\fP | ||
48 | Disables·ruby·code·evaluation·for·lines·beginning·with | 41 | Disables·ruby·code·evaluation·for·lines·beginning·with |
49 | .Li·"%"·. | ||
50 | .Pp | ||
51 | 42 | "%". | |
43 | .TP | ||
44 | \fB\-S\fP·\fIlevel\fP | ||
52 | Specifies·the·safe·level·in·which·eRuby·script·will·run. | 45 | Specifies·the·safe·level·in·which·eRuby·script·will·run. |
53 | .Pp | ||
54 | .It·Fl·T·Ar·mode | ||
46 | .TP | ||
47 | \fB\-T\fP·\fImode\fP | ||
55 | Specifies·trim·mode·(default·0). | 48 | Specifies·trim·mode·(default·0). |
56 | 49 | \fImode\fP | |
57 | can·be·one·of | 50 | can·be·one·of |
58 | .Bl·-hang·-offset·indent | ||
59 | . | 51 | .TP |
52 | .B·0 | ||
60 | EOL·remains·after·the·embedded·ruby·script·is·evaluated. | 53 | EOL·remains·after·the·embedded·ruby·script·is·evaluated. |
61 | .Pp | ||
62 | .It·Sy·1 | ||
54 | .TP | ||
55 | .B·1 | ||
63 | EOL·is·removed·if·the·line·ends·with | 56 | EOL·is·removed·if·the·line·ends·with |
64 | .Li·"%>"·. | ||
65 | .Pp | ||
66 | 57 | "%>". | |
58 | .TP | ||
59 | .B·2 | ||
67 | EOL·is·removed·if·the·line·starts·with | 60 | EOL·is·removed·if·the·line·starts·with |
68 | 61 | "<%" | |
69 | and·ends·with | 62 | and·ends·with |
70 | .Li·"%>"·. | ||
71 | .Pp | ||
72 | 63 | "%>". | |
64 | .TP | ||
65 | .B·- | ||
73 | EOL·is·removed·if·the·line·ends·with | 66 | EOL·is·removed·if·the·line·ends·with |
74 | 67 | "-%>". | |
75 | And·leading·whitespaces·are·removed·if·the·erb·directive·starts·with | 68 | And·leading·whitespaces·are·removed·if·the·erb·directive·starts·with |
76 | .Li·"<%-"·. | ||
77 | .Pp | ||
78 | .El | ||
79 | 69 | "<%-". | |
70 | .TP | ||
71 | \fB\-r\fP | ||
80 | Load·a·library | 72 | Load·a·library |
81 | .Pp | ||
82 | .It·Fl·U | ||
73 | .TP | ||
74 | \fB\-U\fP | ||
83 | can·be·one·of | 75 | can·be·one·of |
84 | Sets·the·default·value·for·internal·encodings | 76 | Sets·the·default·value·for·internal·encodings |
85 | 77 | ("Encoding.default_internal")·to·UTF-8. | |
86 | .Pp | ||
... Open expanded diff ... |
Offset 1, 257 lines modified | Offset 1, 322 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·August·11,·2019 | ||
3 | . | 1 | .TH·IRB·\&1·"Ruby·Programmer's·Reference·Guide"·"August·11,·2019"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBirb\fP | |
7 | 4 | \-·Interactive·Ruby·Shell | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-version | ||
11 | .Op·Fl·dfUw | ||
12 | .Op·Fl·I·Ar·directory | ||
13 | .Op·Fl·r·Ar·library | ||
14 | .Op·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
15 | .Op·Fl·W·Ns·Op·Ar·level | ||
16 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·inspect | ||
17 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·multiline | ||
18 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·singleline | ||
19 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·echo | ||
20 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·colorize | ||
21 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·autocomplete | ||
22 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·verbose | ||
23 | .Op·Fl·-prompt·Ar·mode | ||
24 | .Op·Fl·-prompt-mode·Ar·mode | ||
25 | .Op·Fl·-inf-ruby-mode | ||
26 | .Op·Fl·-simple-prompt | ||
27 | .Op·Fl·-noprompt | ||
28 | .Op·Fl·-tracer | ||
29 | .Op·Fl·-back-trace-limit·Ar·n | ||
30 | . | 6 | .br |
7 | \fBirb\fP | ||
8 | [\fB\--version\fP] | ||
9 | [\fB\-dfUw\fP] | ||
10 | [\fB\-I\fP·\fIdirectory\fP] | ||
11 | [\fB\-r\fP·\fIlibrary\fP] | ||
12 | [\fB\-E\fP·\fIexternal\fP[:\fIinternal\fP]] | ||
13 | [\fB\-W\fP[\fIlevel\fP]] | ||
14 | [\fB\--\fP[no]inspect] | ||
15 | [\fB\--\fP[no]multiline] | ||
16 | [\fB\--\fP[no]singleline] | ||
17 | [\fB\--\fP[no]echo] | ||
18 | [\fB\--\fP[no]colorize] | ||
19 | [\fB\--\fP[no]autocomplete] | ||
20 | [\fB\--\fP[no]verbose] | ||
21 | [\fB\--prompt\fP·\fImode\fP] | ||
22 | [\fB\--prompt-mode\fP·\fImode\fP] | ||
23 | [\fB\--inf-ruby-mode\fP] | ||
24 | [\fB\--simple-prompt\fP] | ||
25 | [\fB\--noprompt\fP] | ||
26 | [\fB\--tracer\fP] | ||
27 | [\fB\--back-trace-limit\fP·\fIn\fP] | ||
28 | [\fB\--\fP] | ||
31 | 29 | [program_file] | |
32 | 30 | [argument·...] | |
33 | .Pp | ||
34 | .S | 31 | .SH·DESCRIPTION |
35 | 32 | \fBirb\fP | |
36 | is·the·REPL(read-eval-print·loop)·environment·for·Ruby·programs. | 33 | is·the·REPL(read-eval-print·loop)·environment·for·Ruby·programs. |
37 | .Pp | ||
38 | .S | 34 | .SH·OPTIONS |
39 | .Bl·-tag·-width·"1234567890123"·-compact | ||
40 | .Pp | ||
41 | .It·Fl·-version | ||
35 | .TP | ||
36 | \fB\--version\fP | ||
42 | Prints·the·version·of | 37 | Prints·the·version·of |
43 | .Nm·. | ||
44 | .Pp | ||
45 | .It·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
46 | 38 | \fB.\fP | |
39 | .TP | ||
40 | \fB\-E\fP·\fIexternal\fP[:\fIinternal\fP] | ||
41 | .TP | ||
42 | \fB\--encoding\fP·\fIexternal\fP[:\fIinternal\fP] | ||
47 | Same·as·`ruby·-E'·. | 43 | Same·as·`ruby·-E'·. |
48 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). | 44 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). |
49 | .Pp | ||
50 | You·can·omit·the·one·for·internal·encodings,·then·the·value | 45 | You·can·omit·the·one·for·internal·encodings,·then·the·value |
51 | 46 | ("Encoding.default_internal")·will·be·nil. | |
52 | .Pp | ||
53 | .It·Fl·I·Ar·path | ||
47 | .TP | ||
48 | \fB\-I\fP·\fIpath\fP | ||
54 | Same·as·`ruby·-I'·. | 49 | Same·as·`ruby·-I'·. |
55 | Specifies | 50 | Specifies |
56 | 51 | $LOAD_PATH | |
57 | directory | 52 | directory |
58 | .Pp | ||
59 | .It·Fl·U | ||
53 | .TP | ||
54 | \fB\-U\fP | ||
60 | Same·as·`ruby·-U'·. | 55 | Same·as·`ruby·-U'·. |
61 | Sets·the·default·value·for·internal·encodings | 56 | Sets·the·default·value·for·internal·encodings |
62 | 57 | ("Encoding.default_internal")·to·UTF-8. | |
63 | .Pp | ||
64 | .It·Fl·d | ||
58 | .TP | ||
59 | \fB\-d\fP | ||
65 | Same·as·`ruby·-d'·. | 60 | Same·as·`ruby·-d'·. |
66 | Sets | 61 | Sets |
67 | 62 | $DEBUG | |
68 | to·true. | 63 | to·true. |
69 | .Pp | ||
70 | .It·Fl·f | ||
64 | .TP | ||
65 | \fB\-f\fP | ||
71 | Suppresses·read·of | 66 | Suppresses·read·of |
72 | .Pa·~/.irbrc·. | ||
73 | .Pp | ||
74 | . | 67 | \fI~/.irbrc\fP. |
68 | .TP | ||
69 | \fB\-w\fP | ||
75 | Same·as·`ruby·-w'·. | 70 | Same·as·`ruby·-w'·. |
76 | .Pp | ||
77 | .Pp | ||
78 | .It·Fl·W | ||
71 | .TP | ||
72 | \fB\-W\fP | ||
79 | Same·as·`ruby·-W'·. | 73 | Same·as·`ruby·-W'·. |
80 | .Pp | ||
81 | .It·Fl·h | ||
82 | .It·Fl·-help | ||
74 | .TP | ||
75 | \fB\-h\fP | ||
... Open expanded diff ... |
Offset 1, 247 lines modified | Offset 1, 270 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·April·20,·2017 | ||
3 | . | 1 | .TH·RI·\&1·"Ruby·Programmer's·Reference·Guide"·"April·20,·2017"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBri\fP | |
7 | 4 | \-·Ruby·API·reference·front·end | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·ahilTv | ||
11 | .Op·Fl·d·Ar·DIRNAME | ||
12 | .Op·Fl·f·Ar·FORMAT | ||
13 | .Op·Fl·w·Ar·WIDTH | ||
14 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·pager | ||
15 | .Op·Fl·-server·Ns·Oo·=·Ns·Ar·PORT·Oc | ||
16 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·list-doc-dirs | ||
17 | .Op·Fl·-no-standard-docs | ||
18 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Bro·Cm·system·Ns·|·Ns·Cm·site·Ns·|·Ns·Cm·gems·Ns·|·Ns·Cm·home·Brc | ||
19 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·profile | ||
20 | .Op·Fl·-dump·Ns·=·Ns·Ar·CACHE | ||
21 | . | 6 | .br |
7 | \fBri\fP | ||
8 | [\fB\-ahilTv\fP] | ||
9 | [\fB\-d\fP·\fIDIRNAME\fP] | ||
10 | [\fB\-f\fP·\fIFORMAT\fP] | ||
11 | [\fB\-w\fP·\fIWIDTH\fP] | ||
12 | [\fB\--\fP[\fBno-\fP]\fBpager\fP] | ||
13 | [\fB\--server\fP[=\fIPORT\fP]] | ||
14 | [\fB\--\fP[\fBno-\fP]\fBlist-doc-dirs\fP] | ||
15 | [\fB\--no-standard-docs\fP] | ||
16 | [\fB\--\fP[\fBno-\fP]{\fBsystem\fP|\fBsite\fP|\fBgems\fP|\fBhome\fP}] | ||
17 | [\fB\--\fP[\fBno-\fP]\fBprofile\fP] | ||
18 | [\fB\--dump\fP=\fICACHE\fP] | ||
19 | [\fIname\fP·...] | ||
22 | .S | 20 | .SH·DESCRIPTION |
23 | 21 | \fBri\fP | |
24 | is·a·command-line·front·end·for·the·Ruby·API·reference. | 22 | is·a·command-line·front·end·for·the·Ruby·API·reference. |
25 | You·can·search·and·read·the·API·reference·for·classes·and·methods·with | 23 | You·can·search·and·read·the·API·reference·for·classes·and·methods·with |
26 | .Nm·. | ||
27 | .Pp | ||
28 | . | 24 | \fB.\fP |
25 | \fBri\fP | ||
29 | is·a·part·of·Ruby. | 26 | is·a·part·of·Ruby. |
30 | .Pp | ||
31 | .Ar·name | ||
27 | \fIname\fP | ||
32 | can·be: | 28 | can·be: |
33 | .Bl·-diag·-offset·indent | ||
34 | 29 | It·Class·|·Module·|·Module::Class | |
35 | .Pp | ||
36 | 30 | It·Class::method·|·Class#method·|·Class.method·|·method | |
37 | .Pp | ||
38 | 31 | It·gem_name:·|·gem_name:README·|·gem_name:History | |
39 | .El | ||
40 | .Pp | ||
41 | All·class·names·may·be·abbreviated·to·their·minimum·unambiguous·form. | 32 | All·class·names·may·be·abbreviated·to·their·minimum·unambiguous·form. |
42 | If·a·name·is·ambiguous,·all·valid·options·will·be·listed. | 33 | If·a·name·is·ambiguous,·all·valid·options·will·be·listed. |
43 | .Pp | ||
44 | A | 34 | A |
45 | 35 | `\&.' | |
46 | matches·either·class·or·instance·methods,·while·#method | 36 | matches·either·class·or·instance·methods,·while·#method |
47 | matches·only·instance·and·::method·matches·only·class·methods. | 37 | matches·only·instance·and·::method·matches·only·class·methods. |
48 | .Pp | ||
49 | README·and·other·files·may·be·displayed·by·prefixing·them·with·the·gem·name | 38 | README·and·other·files·may·be·displayed·by·prefixing·them·with·the·gem·name |
50 | they're·contained·in.··If·the·gem·name·is·followed·by·a | 39 | they're·contained·in.··If·the·gem·name·is·followed·by·a |
51 | 40 | `\&:' | |
52 | all·files·in·the·gem·will·be·shown. | 41 | all·files·in·the·gem·will·be·shown. |
53 | The·file·name·extension·may·be·omitted·where·it·is·unambiguous. | 42 | The·file·name·extension·may·be·omitted·where·it·is·unambiguous. |
54 | .Pp | ||
55 | For·example: | 43 | For·example: |
56 | .Bd·-literal·-offset·indent | ||
57 | ri·Fil | 44 | ri·Fil |
45 | .br | ||
58 | ri·File | 46 | ri·File |
47 | .br | ||
59 | ri·File.new | 48 | ri·File.new |
49 | .br | ||
60 | ri·zip | 50 | ri·zip |
51 | .br | ||
61 | ri·rdoc:README | 52 | ri·rdoc:README |
62 | .Ed | ||
63 | . | 53 | .br |
64 | Note·that·shell·quoting·or·escaping·may·be·required·for·method·names | 54 | Note·that·shell·quoting·or·escaping·may·be·required·for·method·names |
65 | containing·punctuation: | 55 | containing·punctuation: |
66 | .Bd·-literal·-offset·indent | ||
67 | ri·'Array.[]' | 56 | ri·'Array.[]' |
57 | .br | ||
68 | ri·compact\e! | 58 | ri·compact\e! |
69 | .Ed | ||
70 | . | 59 | .br |
71 | To·see·the·default·directories | 60 | To·see·the·default·directories |
72 | 61 | \fBri\fP | |
73 | will·search,·run: | 62 | will·search,·run: |
74 | .Bd·-literal·-offset·indent | ||
75 | ri·--list-doc-dirs | 63 | ri·--list-doc-dirs |
76 | .Ed | ||
77 | . | 64 | .br |
78 | Specifying·the | 65 | Specifying·the |
79 | 66 | \fB\--system\fP,\fB\--site\fP,\fB\--home\fP,\fB\--gems\fP, | |
80 | or | 67 | or |
81 | 68 | \fB\--doc-dir\fP | |
82 | options·will·limit | 69 | options·will·limit |
83 | 70 | \fBri\fP | |
84 | to·searching·only·the·specified·directories. | 71 | to·searching·only·the·specified·directories. |
85 | .Pp | ||
86 | .Nm | ||
72 | \fBri\fP | ||
87 | options·may·be·set·in·the | 73 | options·may·be·set·in·the |
88 | . | 74 | .IR·RI |
89 | environment·variable. | 75 | environment·variable. |
90 | .Pp | ||
91 | The | 76 | The |
92 | 77 | \fBri\fP | |
93 | pager·can·be·set·with·the | 78 | pager·can·be·set·with·the |
94 | . | 79 | .IR·RI_PAGER |
95 | environment·variable·or·the | 80 | environment·variable·or·the |
96 | . | 81 | .IR·PAGER |
97 | environment·variable. | 82 | environment·variable. |
98 | .Pp | ||
99 | .S | 83 | .SH·OPTIONS |
100 | .Bl·-tag·-width·"1234567890123"·-compact | ||
101 | .Pp | ||
... Open expanded diff ... |
Offset 1, 738 lines modified | Offset 1, 840 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·April·14,·2018 | ||
3 | . | 1 | .TH·RUBY·\&1·"Ruby·Programmer's·Reference·Guide"·"April·14,·2018"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBruby\fP | |
7 | 4 | \-·Interpreted·object-oriented·scripting·language | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-copyright | ||
11 | .Op·Fl·-version | ||
12 | .Op·Fl·SUacdlnpswvy | ||
13 | .Op·Fl·0·Ns·Op·Ar·octal | ||
14 | .Op·Fl·C·Ar·directory | ||
15 | .Op·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
16 | .Op·Fl·F·Ns·Op·Ar·pattern | ||
17 | .Op·Fl·I·Ar·directory | ||
18 | .Op·Fl·K·Ns·Op·Ar·c | ||
19 | .Op·Fl·T·Ns·Op·Ar·level | ||
20 | .Op·Fl·W·Ns·Op·Ar·level | ||
21 | .Op·Fl·e·Ar·command | ||
22 | .Op·Fl·i·Ns·Op·Ar·extension | ||
23 | .Op·Fl·r·Ar·library | ||
24 | .Op·Fl·x·Ns·Op·Ar·directory | ||
25 | .Op·Fl·-·Ns·Bro·Cm·enable·Ns·|·Ns·Cm·disable·Brc·Ns·-·Ns·Ar·FEATURE | ||
26 | .Op·Fl·-dump·Ns·=·Ns·Ar·target | ||
27 | .Op·Fl·-verbose | ||
28 | .Op·Fl·-crash-report·Ns·=·Ns·Ar·template | ||
29 | .Op·Fl·- | ||
30 | .Op·Ar·program_file | ||
31 | . | 6 | .br |
7 | \fBruby\fP | ||
8 | [\fB\--copyright\fP] | ||
9 | [\fB\--version\fP] | ||
10 | [\fB\-SUacdlnpswvy\fP] | ||
11 | [\fB\-0\fP[\fIoctal\fP]] | ||
12 | [\fB\-C\fP·\fIdirectory\fP] | ||
13 | [\fB\-E\fP·\fIexternal\fP[:\fIinternal\fP]] | ||
14 | [\fB\-F\fP[\fIpattern\fP]] | ||
15 | [\fB\-I\fP·\fIdirectory\fP] | ||
16 | [\fB\-K\fP[\fIc\fP]] | ||
17 | [\fB\-T\fP[\fIlevel\fP]] | ||
18 | [\fB\-W\fP[\fIlevel\fP]] | ||
19 | [\fB\-e\fP·\fIcommand\fP] | ||
20 | [\fB\-i\fP[\fIextension\fP]] | ||
21 | [\fB\-r\fP·\fIlibrary\fP] | ||
22 | [\fB\-x\fP[\fIdirectory\fP]] | ||
23 | [\fB\--\fP{\fBenable\fP|\fBdisable\fP}-\fIFEATURE\fP] | ||
24 | [\fB\--dump\fP=\fItarget\fP] | ||
25 | [\fB\--verbose\fP] | ||
26 | [\fB\--crash-report\fP=\fItemplate\fP] | ||
27 | [\fB\--\fP] | ||
28 | [\fIprogram_file\fP] | ||
29 | [\fIargument\fP·...] | ||
32 | .S | 30 | .SH·DESCRIPTION |
33 | Ruby·is·an·interpreted·scripting·language·for·quick·and·easy | 31 | Ruby·is·an·interpreted·scripting·language·for·quick·and·easy |
34 | object-oriented·programming.··It·has·many·features·to·process·text | 32 | object-oriented·programming.··It·has·many·features·to·process·text |
35 | files·and·to·do·system·management·tasks·(like·in·Perl).··It·is·simple, | 33 | files·and·to·do·system·management·tasks·(like·in·Perl).··It·is·simple, |
36 | straight-forward,·and·extensible. | 34 | straight-forward,·and·extensible. |
37 | .Pp | ||
38 | If·you·want·a·language·for·easy·object-oriented·programming,·or·you | 35 | If·you·want·a·language·for·easy·object-oriented·programming,·or·you |
39 | don't·like·the·Perl·ugliness,·or·you·do·like·the·concept·of·LISP,·but | 36 | don't·like·the·Perl·ugliness,·or·you·do·like·the·concept·of·LISP,·but |
40 | don't·like·too·many·parentheses,·Ruby·might·be·your·language·of | 37 | don't·like·too·many·parentheses,·Ruby·might·be·your·language·of |
41 | choice. | 38 | choice. |
42 | .S | 39 | .SH·FEATURES |
43 | Ruby's·features·are·as·follows: | 40 | Ruby's·features·are·as·follows: |
44 | . | 41 | .TP |
45 | . | 42 | .B·"Interpretive" |
46 | Ruby·is·an·interpreted·language,·so·you·don't·have·to·recompile | 43 | Ruby·is·an·interpreted·language,·so·you·don't·have·to·recompile |
47 | programs·written·in·Ruby·to·execute·them. | 44 | programs·written·in·Ruby·to·execute·them. |
48 | .Pp | ||
45 | .TP | ||
49 | . | 46 | .B·"Variables·have·no·type·(dynamic·typing)" |
50 | Variables·in·Ruby·can·contain·data·of·any·type.··You·don't·have·to | 47 | Variables·in·Ruby·can·contain·data·of·any·type.··You·don't·have·to |
51 | worry·about·variable·typing.··Consequently,·it·has·a·weaker·compile | 48 | worry·about·variable·typing.··Consequently,·it·has·a·weaker·compile |
52 | time·check. | 49 | time·check. |
53 | .Pp | ||
50 | .TP | ||
54 | . | 51 | .B·"No·declaration·needed" |
55 | You·can·use·variables·in·your·Ruby·programs·without·any·declarations. | 52 | You·can·use·variables·in·your·Ruby·programs·without·any·declarations. |
56 | Variable·names·denote·their·scope·-·global,·class,·instance,·or·local. | 53 | Variable·names·denote·their·scope·-·global,·class,·instance,·or·local. |
57 | .Pp | ||
54 | .TP | ||
58 | . | 55 | .B·"Simple·syntax" |
59 | Ruby·has·a·simple·syntax·influenced·slightly·from·Eiffel. | 56 | Ruby·has·a·simple·syntax·influenced·slightly·from·Eiffel. |
60 | .Pp | ||
57 | .TP | ||
61 | . | 58 | .B·"No·user-level·memory·management" |
62 | Ruby·has·automatic·memory·management.··Objects·no·longer·referenced | 59 | Ruby·has·automatic·memory·management.··Objects·no·longer·referenced |
63 | from·anywhere·are·automatically·collected·by·the·garbage·collector | 60 | from·anywhere·are·automatically·collected·by·the·garbage·collector |
64 | built·into·the·interpreter. | 61 | built·into·the·interpreter. |
65 | .Pp | ||
62 | .TP | ||
66 | . | 63 | .B·"Everything·is·an·object" |
67 | Ruby·is·a·purely·object-oriented·language,·and·was·so·since·its | 64 | Ruby·is·a·purely·object-oriented·language,·and·was·so·since·its |
68 | creation.··Even·such·basic·data·as·integers·are·seen·as·objects. | 65 | creation.··Even·such·basic·data·as·integers·are·seen·as·objects. |
69 | .Pp | ||
66 | .TP | ||
70 | . | 67 | .B·"Class,·inheritance,·and·methods" |
71 | Being·an·object-oriented·language,·Ruby·naturally·has·basic | 68 | Being·an·object-oriented·language,·Ruby·naturally·has·basic |
72 | features·like·classes,·inheritance,·and·methods. | 69 | features·like·classes,·inheritance,·and·methods. |
73 | .Pp | ||
70 | .TP | ||
74 | . | 71 | .B·"Singleton·methods" |
75 | Ruby·has·the·ability·to·define·methods·for·certain·objects.··For | 72 | Ruby·has·the·ability·to·define·methods·for·certain·objects.··For |
76 | example,·you·can·define·a·press-button·action·for·certain·widget·by | 73 | example,·you·can·define·a·press-button·action·for·certain·widget·by |
77 | defining·a·singleton·method·for·the·button.··Or,·you·can·make·up·your | 74 | defining·a·singleton·method·for·the·button.··Or,·you·can·make·up·your |
78 | own·prototype·based·object·system·using·singleton·methods,·if·you·want | 75 | own·prototype·based·object·system·using·singleton·methods,·if·you·want |
79 | to. | 76 | to. |
80 | .Pp | ||
77 | .TP | ||
81 | . | 78 | .B·"Mix-in·by·modules" |
82 | Ruby·intentionally·does·not·have·the·multiple·inheritance·as·it·is·a | 79 | Ruby·intentionally·does·not·have·the·multiple·inheritance·as·it·is·a |
83 | source·of·confusion.··Instead,·Ruby·has·the·ability·to·share | 80 | source·of·confusion.··Instead,·Ruby·has·the·ability·to·share |
84 | implementations·across·the·inheritance·tree.··This·is·often·called·a | 81 | implementations·across·the·inheritance·tree.··This·is·often·called·a |
85 | .Sq·Mix-in·. | ||
86 | 82 | `Mix-in'. | |
83 | .TP | ||
87 | . | 84 | .B·"Iterators" |
88 | Ruby·has·iterators·for·loop·abstraction. | 85 | Ruby·has·iterators·for·loop·abstraction. |
89 | .Pp | ||
86 | .TP | ||
90 | . | 87 | .B·"Closures" |
91 | In·Ruby,·you·can·objectify·the·procedure. | 88 | In·Ruby,·you·can·objectify·the·procedure. |
92 | .Pp | ||
89 | .TP | ||
... Open expanded diff ... |
Offset 31, 15 lines modified | Offset 31, 15 lines modified | ||
31 | ··CONFIG["RUBY_SO_NAME"]·=·"$(RUBY_BASE_NAME)" | 31 | ··CONFIG["RUBY_SO_NAME"]·=·"$(RUBY_BASE_NAME)" |
32 | ··CONFIG["exec"]·=·"exec" | 32 | ··CONFIG["exec"]·=·"exec" |
33 | ··CONFIG["ruby_pc"]·=·"ruby-3.3.pc" | 33 | ··CONFIG["ruby_pc"]·=·"ruby-3.3.pc" |
34 | ··CONFIG["CC_WRAPPER"]·=·"" | 34 | ··CONFIG["CC_WRAPPER"]·=·"" |
35 | ··CONFIG["PACKAGE"]·=·"ruby" | 35 | ··CONFIG["PACKAGE"]·=·"ruby" |
36 | ··CONFIG["BUILTIN_TRANSSRCS"]·=·"·enc/trans/newline.c" | 36 | ··CONFIG["BUILTIN_TRANSSRCS"]·=·"·enc/trans/newline.c" |
37 | ··CONFIG["MKMF_VERBOSE"]·=·"0" | 37 | ··CONFIG["MKMF_VERBOSE"]·=·"0" |
38 | ··CONFIG["MANTYPE"]·=·" | 38 | ··CONFIG["MANTYPE"]·=·"man" |
39 | ··CONFIG["vendorarchhdrdir"]·=·"$(vendorhdrdir)/$(sitearch)" | 39 | ··CONFIG["vendorarchhdrdir"]·=·"$(vendorhdrdir)/$(sitearch)" |
40 | ··CONFIG["sitearchhdrdir"]·=·"$(sitehdrdir)/$(sitearch)" | 40 | ··CONFIG["sitearchhdrdir"]·=·"$(sitehdrdir)/$(sitearch)" |
41 | ··CONFIG["rubyarchhdrdir"]·=·"$(rubyhdrdir)/$(arch)" | 41 | ··CONFIG["rubyarchhdrdir"]·=·"$(rubyhdrdir)/$(arch)" |
42 | ··CONFIG["vendorhdrdir"]·=·"$(rubyhdrdir)/vendor_ruby" | 42 | ··CONFIG["vendorhdrdir"]·=·"$(rubyhdrdir)/vendor_ruby" |
43 | ··CONFIG["sitehdrdir"]·=·"$(rubyhdrdir)/site_ruby" | 43 | ··CONFIG["sitehdrdir"]·=·"$(rubyhdrdir)/site_ruby" |
44 | ··CONFIG["rubyhdrdir"]·=·"$(includedir)/$(RUBY_VERSION_NAME)" | 44 | ··CONFIG["rubyhdrdir"]·=·"$(includedir)/$(RUBY_VERSION_NAME)" |
45 | ··CONFIG["RUBY_SEARCH_PATH"]·=·"" | 45 | ··CONFIG["RUBY_SEARCH_PATH"]·=·"" |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary | 1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary |
2 | ?rw-r--r--···0········0········0······420·1970-01-01·00:00:00.000000·control.tar.gz | 2 | ?rw-r--r--···0········0········0······420·1970-01-01·00:00:00.000000·control.tar.gz |
3 | ?rw-r--r--···0········0········0····1 | 3 | ?rw-r--r--···0········0········0····16929·1970-01-01·00:00:00.000000·data.tar.zst |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/ |
5 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 5 | -rw-r--r--···0·root·········(0)·root·········(0)····23827·2024-08-08·18:10:52.000000·./usr/share/man/man3/editline.3 |
6 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 | 6 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 |
7 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 | 7 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 |
8 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 | 8 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 |
9 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 | 9 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 |
10 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 | 10 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 |
11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 | 11 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 |
12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 | 12 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 |
Offset 40, 10 lines modified | Offset 40, 10 lines modified | ||
40 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 | 40 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 |
41 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 | 41 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 |
42 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 | 42 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 |
43 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 | 43 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 |
44 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 | 44 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 |
45 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 | 45 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 |
46 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ | 46 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man5/ |
47 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 47 | -rw-r--r--···0·root·········(0)·root·········(0)·····3598·2024-08-08·18:10:52.000000·./usr/share/man/man5/editrc.5 |
48 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ | 48 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-08-08·18:10:52.000000·./usr/share/man/man7/ |
49 | -rw-r--r--···0·root·········(0)·root·········(0)····33 | 49 | -rw-r--r--···0·root·········(0)·root·········(0)····33136·2024-08-08·18:10:52.000000·./usr/share/man/man7/editline.7 |
Offset 1, 1020 lines modified | Offset 1, 1172 lines modified | ||
1 | .TH·EDITLINE·3·"August·15,·2021"·"" | ||
1 | .\"» $NetBSD:·editline.3,v·1.102·2024/02/04·18:47:27·andvar·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2014·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·August·15,·2021 | ||
30 | .Dt·EDITLINE·3 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | .Nm·editline·, | ||
34 | .Nm·el_init·, | ||
35 | .Nm·el_init_fd·, | ||
36 | .Nm·el_end·, | ||
37 | .Nm·el_reset·, | ||
38 | .Nm·el_gets·, | ||
39 | .Nm·el_wgets·, | ||
40 | .Nm·el_getc·, | ||
41 | .Nm·el_wgetc·, | ||
42 | .Nm·el_push·, | ||
43 | .Nm·el_wpush·, | ||
44 | .Nm·el_parse·, | ||
45 | .Nm·el_wparse·, | ||
46 | .Nm·el_set·, | ||
47 | .Nm·el_wset·, | ||
48 | .Nm·el_get·, | ||
49 | .Nm·el_wget·, | ||
50 | .Nm·el_source·, | ||
51 | .Nm·el_resize·, | ||
52 | .Nm·el_cursor·, | ||
53 | .Nm·el_line·, | ||
54 | .Nm·el_wline·, | ||
55 | .Nm·el_insertstr·, | ||
56 | .Nm·el_winsertstr·, | ||
57 | .Nm·el_deletestr·, | ||
58 | .Nm·el_wdeletestr·, | ||
59 | .Nm·history_init·, | ||
60 | .Nm·history_winit·, | ||
61 | .Nm·history_end·, | ||
62 | .Nm·history_wend·, | ||
63 | .Nm·history·, | ||
64 | .Nm·history_w·, | ||
65 | .Nm·tok_init·, | ||
66 | .Nm·tok_winit·, | ||
67 | .Nm·tok_end·, | ||
68 | .Nm·tok_wend·, | ||
69 | .Nm·tok_reset·, | ||
70 | .Nm·tok_wreset·, | ||
71 | .Nm·tok_line·, | ||
72 | .Nm·tok_wline·, | ||
73 | .Nm·tok_str·, | ||
74 | 3 | \fBeditline\fP, | |
4 | \fBel_init\fP, | ||
5 | \fBel_init_fd\fP, | ||
6 | \fBel_end\fP, | ||
7 | \fBel_reset\fP, | ||
8 | \fBel_gets\fP, | ||
9 | \fBel_wgets\fP, | ||
10 | \fBel_getc\fP, | ||
11 | \fBel_wgetc\fP, | ||
12 | \fBel_push\fP, | ||
13 | \fBel_wpush\fP, | ||
14 | \fBel_parse\fP, | ||
15 | \fBel_wparse\fP, | ||
16 | \fBel_set\fP, | ||
17 | \fBel_wset\fP, | ||
18 | \fBel_get\fP, | ||
19 | \fBel_wget\fP, | ||
20 | \fBel_source\fP, | ||
21 | \fBel_resize\fP, | ||
22 | \fBel_cursor\fP, | ||
23 | \fBel_line\fP, | ||
24 | \fBel_wline\fP, | ||
25 | \fBel_insertstr\fP, | ||
26 | \fBel_winsertstr\fP, | ||
27 | \fBel_deletestr\fP, | ||
28 | \fBel_wdeletestr\fP, | ||
29 | \fBhistory_init\fP, | ||
30 | \fBhistory_winit\fP, | ||
31 | \fBhistory_end\fP, | ||
32 | \fBhistory_wend\fP, | ||
33 | \fBhistory\fP, | ||
34 | \fBhistory_w\fP, | ||
35 | \fBtok_init\fP, | ||
36 | \fBtok_winit\fP, | ||
37 | \fBtok_end\fP, | ||
38 | \fBtok_wend\fP, | ||
39 | \fBtok_reset\fP, | ||
40 | \fBtok_wreset\fP, | ||
41 | \fBtok_line\fP, | ||
42 | \fBtok_wline\fP, | ||
43 | \fBtok_str\fP, | ||
44 | \fBtok_wstr\fP | ||
75 | 45 | \-·line·editor,·history·and·tokenization·functions | |
76 | .S | 46 | .SH·LIBRARY |
77 | 47 | Command·Line·Editor·Library·(libedit,·-ledit) | |
78 | .S | 48 | .SH·SYNOPSIS |
79 | .In·histedit.h | ||
80 | .Ft·EditLine·* | ||
81 | .Fn·el_init·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr" | ||
82 | .Ft·EditLine·* | ||
83 | .Fn·el_init_fd·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr"·"int·fdin"·"int·fdout"·"int·fderr" | ||
84 | .Ft·void | ||
85 | .Fn·el_end·"EditLine·*e" | ||
... Open expanded diff ... |
Offset 1, 326 lines modified | Offset 1, 142 lines modified | ||
1 | .TH·EDITRC·5·"May·22,·2016"·"" | ||
1 | .\"» $NetBSD:·editrc.5,v·1.34·2022/12/06·00:59:20·uwe·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2000·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·May·22,·2016 | ||
30 | .Dt·EDITRC·5 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | 3 | \fBeditrc\fP | |
34 | 4 | \-·configuration·file·for·editline·library | |
35 | .S | 5 | .SH·SYNOPSIS |
36 | . | 6 | .br |
7 | \fBeditrc\fP | ||
37 | .S | 8 | .SH·DESCRIPTION |
38 | The | 9 | The |
39 | 10 | \fBeditrc\fP | |
40 | file·defines·various·settings·to·be·used·by·the | 11 | file·defines·various·settings·to·be·used·by·the |
41 | 12 | \fBeditline\fP(3) | |
42 | library. | 13 | library. |
43 | .Pp | ||
44 | The·format·of·each·line·is: | 14 | The·format·of·each·line·is: |
45 | .Pp | ||
46 | .D1·Oo·Ar·prog·Ns·Ic·\&:·Oc·Ns·Ar·command·Oo·Ar·arg·...·Oc | ||
47 | .Pp | ||
48 | .Ar·command | ||
49 | is·one·of·the | 15 | is·one·of·the |
50 | .Xr·editline·3 | ||
51 | builtin·commands. | 16 | builtin·commands. |
52 | Refer·to | 17 | Refer·to |
53 | .Sx·BUILTIN·COMMANDS | ||
54 | for·more·information. | 18 | for·more·information. |
55 | .Pp | ||
56 | .Ar·prog | ||
57 | is·the·program·name·string·that·a·program·defines·when·it·calls | 19 | is·the·program·name·string·that·a·program·defines·when·it·calls |
58 | .Xr·el_init·3 | ||
59 | to·set·up | 20 | to·set·up |
60 | .Xr·editline·3·, | ||
61 | which·is·usually | 21 | which·is·usually |
62 | .Va·argv·Ns·Li·[0]·. | ||
63 | .Ar·command | ||
64 | will·be·executed·for·any·program·which·matches | 22 | will·be·executed·for·any·program·which·matches |
65 | .Ar·prog·. | ||
66 | .Pp | ||
67 | .Ar·prog | ||
68 | may·also·be·a | 23 | may·also·be·a |
69 | .Xr·regex·3 | ||
70 | style | 24 | style |
71 | regular·expression,·in·which·case | 25 | regular·expression,·in·which·case |
72 | .Ar·command | ||
73 | will·be·executed·for·any·program·that·matches·the·regular·expression. | 26 | will·be·executed·for·any·program·that·matches·the·regular·expression. |
74 | .Pp | ||
75 | If | 27 | If |
76 | .Ar·prog | ||
77 | is·absent, | 28 | is·absent, |
78 | .Ar·command | ||
79 | is·executed·for·all·programs. | 29 | is·executed·for·all·programs. |
80 | .Sh·BUILTIN·COMMANDS | ||
81 | The | 30 | The |
82 | .Nm·editline | ||
83 | library·has·some·builtin·commands,·which·affect·the·way | 31 | library·has·some·builtin·commands,·which·affect·the·way |
84 | that·the·line·editing·and·history·functions·operate. | 32 | that·the·line·editing·and·history·functions·operate. |
85 | These·are·based·on·similar·named·builtins·present·in·the | 33 | These·are·based·on·similar·named·builtins·present·in·the |
86 | .Xr·tcsh·1 | ||
87 | shell. | 34 | shell. |
88 | .Pp | ||
89 | The·following·builtin·commands·are·available: | 35 | The·following·builtin·commands·are·available: |
90 | .Bl·-tag·-width·4n | ||
91 | .It·Ic·bind·Oo·Fl·aeklrsv·Oc·Op·Ar·key·Op·Ar·command | ||
92 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and | 36 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and |
93 | the·editor·command·or·input·string·to·which·each·one·is·bound. | 37 | the·editor·command·or·input·string·to·which·each·one·is·bound. |
94 | If·only | 38 | If·only |
95 | .Ar·key | ||
96 | is·supplied,·show·the·binding·for·that·key·or·macro. | 39 | is·supplied,·show·the·binding·for·that·key·or·macro. |
97 | If | 40 | If |
98 | .Ar·key·command | ||
99 | is·supplied,·bind·the·editor | 41 | is·supplied,·bind·the·editor |
100 | .Ar·command | ||
101 | to·that·key·or·macro. | 42 | to·that·key·or·macro. |
102 | .Pp | ||
103 | The·options·are·as·follows: | 43 | The·options·are·as·follows: |
104 | .Bl·-tag·-width·4n | ||
105 | .It·Fl·a | ||
106 | List·or·change·key·bindings·in·the | 44 | List·or·change·key·bindings·in·the |
107 | .Xr·vi·1 | ||
108 | mode·alternate·(command·mode)·key·map. | 45 | mode·alternate·(command·mode)·key·map. |
109 | .It·Fl·e | ||
110 | Bind·all·keys·to·the·standard | 46 | Bind·all·keys·to·the·standard |
111 | .Tn·GNU | ||
112 | Emacs-like·bindings. | 47 | Emacs-like·bindings. |
113 | .It·Fl·k | ||
114 | .Ar·key | ||
115 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of | 48 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of |
116 | .Ic·up·, | ||
117 | .Ic·down·, | ||
118 | .Ic·left | ||
119 | or | 49 | or |
120 | .Ic·right·. | ||
121 | .It·Fl·l | ||
122 | List·all·editor·commands·and·a·short·description·of·each. | 50 | List·all·editor·commands·and·a·short·description·of·each. |
123 | .It·Fl·r | ||
124 | Remove·the·binding·of·the·key·or·macro | 51 | Remove·the·binding·of·the·key·or·macro |
125 | .Ar·key·. | ||
... Open expanded diff ... |
Offset 1, 935 lines modified | Offset 1, 1001 lines modified | ||
1 | .TH·EDITLINE·7·"April·6,·2024"·"" | ||
1 | .\"» $NetBSD:·editline.7,v·1.6·2024/04/06·13:36:11·christos·Exp·$ | ||
2 | .\"» $OpenBSD:·editline.7,v·1.1·2016/04/20·01:11:45·schwarze·Exp·$ | ||
3 | .\" | ||
4 | .\"·Copyright·(c)·2016·Ingo·Schwarze·<schwarze@openbsd.org> | ||
5 | .\" | ||
6 | .\"·Permission·to·use,·copy,·modify,·and·distribute·this·software·for·any | ||
7 | .\"·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above | ||
8 | .\"·copyright·notice·and·this·permission·notice·appear·in·all·copies. | ||
9 | .\" | ||
10 | .\"·THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·THE·AUTHOR·DISCLAIMS·ALL·WARRANTIES | ||
11 | .\"·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF | ||
12 | .\"·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·THE·AUTHOR·BE·LIABLE·FOR | ||
13 | .\"·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES | ||
14 | .\"·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN | ||
15 | .\"·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF | ||
16 | .\"·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. | ||
17 | .\" | ||
18 | .Dd·April·6,·2024 | ||
19 | .Dt·EDITLINE·7 | ||
20 | .Os | ||
21 | .S | 2 | .SH·NAME |
22 | 3 | \fBeditline\fP | |
23 | 4 | \-·line·editing·user·interface | |
24 | .S | 5 | .SH·DESCRIPTION |
25 | When·a·program·using·the | 6 | When·a·program·using·the |
26 | 7 | \fBeditline\fP(3) | |
27 | library·prompts·for·an·input·string·using·the·function | 8 | library·prompts·for·an·input·string·using·the·function |
28 | 9 | \fBel_wgets\fP(3), | |
29 | it·reads·characters·from·the·terminal. | 10 | it·reads·characters·from·the·terminal. |
30 | Invalid·input·bytes·that·do·not·form·characters·are·silently | 11 | Invalid·input·bytes·that·do·not·form·characters·are·silently |
31 | discarded. | 12 | discarded. |
32 | For·each·character·read,·one·editor·command·is·executed. | 13 | For·each·character·read,·one·editor·command·is·executed. |
33 | The·mapping·of·input·characters·to·editor·commands·depends·on·the | 14 | The·mapping·of·input·characters·to·editor·commands·depends·on·the |
34 | editing·mode. | 15 | editing·mode. |
35 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, | 16 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, |
36 | and·emacs·mode. | 17 | and·emacs·mode. |
37 | The·default·is·vi·insert·mode. | 18 | The·default·is·vi·insert·mode. |
38 | The·program·can·switch·the·default·to·emacs·mode·by·using·the | 19 | The·program·can·switch·the·default·to·emacs·mode·by·using·the |
39 | 20 | \fBel_set\fP(3) | |
40 | or | 21 | or |
41 | 22 | \fBel_parse\fP(3) | |
42 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the | 23 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the |
43 | 24 | \fBeditrc\fP(5) | |
44 | configuration·file·or·interactively·with·the | 25 | configuration·file·or·interactively·with·the |
45 | 26 | \fBed-command\fP | |
46 | editor·command,·in·all·three·cases·executing·the | 27 | editor·command,·in·all·three·cases·executing·the |
47 | 28 | \fBbind·Fl·e\fP | |
48 | builtin·command. | 29 | builtin·command. |
49 | .Pp | ||
50 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an | 30 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an |
51 | error,·the·library·signals·end·of·file·to·the·program·and·does·not | 31 | error,·the·library·signals·end·of·file·to·the·program·and·does·not |
52 | return·a·string. | 32 | return·a·string. |
53 | .S | 33 | .SS·Input·character·bindings |
54 | All·default·bindings·described·below·can·be·overridden·by·individual | 34 | All·default·bindings·described·below·can·be·overridden·by·individual |
55 | programs·and·can·be·changed·with·the | 35 | programs·and·can·be·changed·with·the |
56 | .Xr·editrc·5 | ||
57 | 36 | \fBeditrc\fP(5) | |
37 | \fBbind\fP | ||
58 | builtin·command. | 38 | builtin·command. |
59 | .Pp | ||
60 | In·the·following·tables, | 39 | In·the·following·tables, |
61 | 40 | `Ctrl-' | |
62 | indicates·a·character·with·the·bit·0x40·flipped,·and | 41 | indicates·a·character·with·the·bit·0x40·flipped,·and |
63 | 42 | `Meta-' | |
64 | indicates·a·character·with·the·bit·0x80·set. | 43 | indicates·a·character·with·the·bit·0x80·set. |
65 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered | 44 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered |
66 | printable·by·the·current | 45 | printable·by·the·current |
67 | 46 | \fBlocale\fP(1) | |
68 | are·bound·to | 47 | are·bound·to |
69 | 48 | \fBed-insert\fP | |
70 | instead·of·to·the·editor·command·listed·below. | 49 | instead·of·to·the·editor·command·listed·below. |
71 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not | 50 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not |
72 | directly·accessible·because·their·code·points·are·occupied·by | 51 | directly·accessible·because·their·code·points·are·occupied·by |
73 | printable·Unicode·characters,·and·Meta-characters·are·usually·input | 52 | printable·Unicode·characters,·and·Meta-characters·are·usually·input |
74 | using·the | 53 | using·the |
75 | 54 | \fBem-meta-next\fP | |
76 | editor·command. | 55 | editor·command. |
77 | For·example,·to·enter | 56 | For·example,·to·enter |
78 | 57 | `Meta-B' | |
79 | in·order·to·call·the | 58 | in·order·to·call·the |
80 | 59 | \fBed-prev-word\fP | |
81 | editor·command·in·emacs·mode,·call | 60 | editor·command·in·emacs·mode,·call |
82 | 61 | \fBem-meta-next\fP | |
83 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), | 62 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), |
84 | then·press·and·release·the | 63 | then·press·and·release·the |
85 | 64 | `B' | |
86 | key. | 65 | key. |
87 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example | 66 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example |
88 | with | 67 | with |
89 | 68 | `setxkbmap'·-option·altwin:left_meta_win·, | |
90 | the·Ctrl-Meta-characters·are·directly·accessible. | 69 | the·Ctrl-Meta-characters·are·directly·accessible. |
91 | For·example,·to·enter | 70 | For·example,·to·enter |
92 | 71 | `Ctrl-Meta-H' | |
93 | in·order·to·call·the | 72 | in·order·to·call·the |
94 | 73 | \fBed-delete-prev-word\fP | |
95 | editor·command·in·emacs·mode,·hold·down·the·keys | 74 | editor·command·in·emacs·mode,·hold·down·the·keys |
96 | .Sq·Ctrl·, | ||
97 | 75 | `Ctrl', | |
76 | `Meta', | ||
98 | and | 77 | and |
99 | 78 | `H' | |
100 | at·the·same·time. | 79 | at·the·same·time. |
101 | Alternatively,·press·and·release·the·escape·key,·then·press·and | 80 | Alternatively,·press·and·release·the·escape·key,·then·press·and |
102 | release | 81 | release |
103 | .Sq·Ctrl-H·. | ||
104 | 82 | `Ctrl-H'. | |
105 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor | 83 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor |
106 | commands·by·default: | 84 | commands·by·default: |
107 | .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history" | ||
108 | 85 | It·Ctrl-D,·EOF·Ta·\fBvi-list-or-eof\fP | |
109 | 86 | It·Ctrl-H,·BS·Ta·\fBvi-delete-prev-char\fP | |
110 | 87 | It·Ctrl-J,·LF·Ta·\fBed-newline\fP | |
111 | 88 | It·Ctrl-M,·CR·Ta·\fBed-newline\fP | |
112 | 89 | It·Ctrl-Q·Ta·\fBed-tty-start-output\fP | |
113 | 90 | It·Ctrl-S·Ta·\fBed-tty-stop-output\fP | |
114 | 91 | It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP | |
115 | 92 | It·Ctrl-V·Ta·\fBed-quoted-insert\fP | |
116 | 93 | It·Ctrl-W·Ta·\fBed-delete-prev-word\fP | |
117 | 94 | It·Ctrl-[,·ESC·Ta·\fBvi-command-mode\fP | |
118 | 95 | It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP | |
119 | 96 | It·Ctrl-?,·DEL·Ta·\fBvi-delete-prev-char\fP | |
120 | .El | ||
121 | .Pp | ||
122 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are | 97 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are |
... Open expanded diff ... |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary | 1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary |
2 | ?rw-r--r--···0········0········0······523·1970-01-01·00:00:00.000000·control.tar.gz | 2 | ?rw-r--r--···0········0········0······523·1970-01-01·00:00:00.000000·control.tar.gz |
3 | ?rw-r--r--···0········0········0····11 | 3 | ?rw-r--r--···0········0········0····11587·1970-01-01·00:00:00.000000·data.tar.zst |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/ | 1 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/ |
2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/ | 2 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/ |
3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/ | 3 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/ |
4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/man1/ | 4 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-07-08·23:28:24.000000·./usr/share/man/man1/ |
5 | -rw-r--r--···0·root·········(0)·root·········(0)·····3 | 5 | -rw-r--r--···0·root·········(0)·root·········(0)·····3161·2024-07-08·23:28:24.000000·./usr/share/man/man1/erb.1 |
6 | -rw-r--r--···0·root·········(0)·root·········(0)·····49 | 6 | -rw-r--r--···0·root·········(0)·root·········(0)·····4939·2024-07-08·23:28:24.000000·./usr/share/man/man1/irb.1 |
7 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 7 | -rw-r--r--···0·root·········(0)·root·········(0)·····4911·2024-07-08·23:28:24.000000·./usr/share/man/man1/ri.1 |
8 | -rw-r--r--···0·root·········(0)·root·········(0)····2 | 8 | -rw-r--r--···0·root·········(0)·root·········(0)····20580·2024-07-08·23:28:24.000000·./usr/share/man/man1/ruby.1 |
Offset 1, 160 lines modified | Offset 1, 184 lines modified | ||
1 | .TH·ERB·\&1·"Ruby·Programmer's·Reference·Guide"·"December·16,·2018"·"UNIX" | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·December·16,·2018 | ||
3 | .Dt·ERB·\&1·"Ruby·Programmer's·Reference·Guide" | ||
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBerb\fP | |
7 | 4 | \-·Ruby·Templating | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-version | ||
11 | .Op·Fl·UPdnvx | ||
12 | .Op·Fl·E·Ar·ext·Ns·Op·Ns·:·Ns·int | ||
13 | .Op·Fl·S·Ar·level | ||
14 | .Op·Fl·T·Ar·mode | ||
15 | .Op·Fl·r·Ar·library | ||
16 | .Op·Fl·- | ||
17 | .Op·file·... | ||
18 | . | 6 | .br |
7 | \fBerb\fP | ||
8 | [\fB\--version\fP] | ||
9 | [\fB\-UPdnvx\fP] | ||
10 | [\fB\-E\fP·\fIext\fP[:int]] | ||
11 | [\fB\-S\fP·\fIlevel\fP] | ||
12 | [\fB\-T\fP·\fImode\fP] | ||
13 | [\fB\-r\fP·\fIlibrary\fP] | ||
14 | [\fB\--\fP] | ||
15 | [file·...] | ||
19 | .S | 16 | .SH·DESCRIPTION |
20 | 17 | \fBerb\fP | |
21 | is·a·command·line·front-end·for | 18 | is·a·command·line·front-end·for |
22 | 19 | "ERB" | |
23 | library,·which·is·an·implementation·of·eRuby. | 20 | library,·which·is·an·implementation·of·eRuby. |
24 | .Pp | ||
25 | ERB·provides·an·easy·to·use·but·powerful·templating·system·for·Ruby. | 21 | ERB·provides·an·easy·to·use·but·powerful·templating·system·for·Ruby. |
26 | Using·ERB,·actual·Ruby·code·can·be·added·to·any·plain·text·document·for·the | 22 | Using·ERB,·actual·Ruby·code·can·be·added·to·any·plain·text·document·for·the |
27 | purposes·of·generating·document·information·details·and/or·flow·control. | 23 | purposes·of·generating·document·information·details·and/or·flow·control. |
28 | .Pp | ||
29 | .Nm | ||
24 | \fBerb\fP | ||
30 | is·a·part·of | 25 | is·a·part·of |
31 | .Nm·Ruby·. | ||
32 | 26 | \fBRuby\fP. | |
33 | .S | 27 | .SH·OPTIONS |
34 | .Bl·-tag·-width·"1234567890123"·-compact | ||
35 | .Pp | ||
36 | .It·Fl·-version | ||
28 | .TP | ||
29 | \fB\--version\fP | ||
37 | Prints·the·version·of | 30 | Prints·the·version·of |
38 | .Nm·. | ||
39 | .Pp | ||
40 | .It·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
41 | 31 | \fB.\fP | |
32 | .TP | ||
33 | \fB\-E\fP·\fIexternal\fP[:\fIinternal\fP] | ||
34 | .TP | ||
35 | \fB\--encoding\fP·\fIexternal\fP[:\fIinternal\fP] | ||
42 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). | 36 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). |
43 | .Pp | ||
44 | You·can·omit·the·one·for·internal·encodings,·then·the·value | 37 | You·can·omit·the·one·for·internal·encodings,·then·the·value |
45 | 38 | ("Encoding.default_internal")·will·be·nil. | |
46 | .Pp | ||
47 | .It·Fl·P | ||
39 | .TP | ||
40 | \fB\-P\fP | ||
48 | Disables·ruby·code·evaluation·for·lines·beginning·with | 41 | Disables·ruby·code·evaluation·for·lines·beginning·with |
49 | .Li·"%"·. | ||
50 | .Pp | ||
51 | 42 | "%". | |
43 | .TP | ||
44 | \fB\-S\fP·\fIlevel\fP | ||
52 | Specifies·the·safe·level·in·which·eRuby·script·will·run. | 45 | Specifies·the·safe·level·in·which·eRuby·script·will·run. |
53 | .Pp | ||
54 | .It·Fl·T·Ar·mode | ||
46 | .TP | ||
47 | \fB\-T\fP·\fImode\fP | ||
55 | Specifies·trim·mode·(default·0). | 48 | Specifies·trim·mode·(default·0). |
56 | 49 | \fImode\fP | |
57 | can·be·one·of | 50 | can·be·one·of |
58 | .Bl·-hang·-offset·indent | ||
59 | . | 51 | .TP |
52 | .B·0 | ||
60 | EOL·remains·after·the·embedded·ruby·script·is·evaluated. | 53 | EOL·remains·after·the·embedded·ruby·script·is·evaluated. |
61 | .Pp | ||
62 | .It·Sy·1 | ||
54 | .TP | ||
55 | .B·1 | ||
63 | EOL·is·removed·if·the·line·ends·with | 56 | EOL·is·removed·if·the·line·ends·with |
64 | .Li·"%>"·. | ||
65 | .Pp | ||
66 | 57 | "%>". | |
58 | .TP | ||
59 | .B·2 | ||
67 | EOL·is·removed·if·the·line·starts·with | 60 | EOL·is·removed·if·the·line·starts·with |
68 | 61 | "<%" | |
69 | and·ends·with | 62 | and·ends·with |
70 | .Li·"%>"·. | ||
71 | .Pp | ||
72 | 63 | "%>". | |
64 | .TP | ||
65 | .B·- | ||
73 | EOL·is·removed·if·the·line·ends·with | 66 | EOL·is·removed·if·the·line·ends·with |
74 | 67 | "-%>". | |
75 | And·leading·whitespaces·are·removed·if·the·erb·directive·starts·with | 68 | And·leading·whitespaces·are·removed·if·the·erb·directive·starts·with |
76 | .Li·"<%-"·. | ||
77 | .Pp | ||
78 | .El | ||
79 | 69 | "<%-". | |
70 | .TP | ||
71 | \fB\-r\fP | ||
80 | Load·a·library | 72 | Load·a·library |
81 | .Pp | ||
82 | .It·Fl·U | ||
73 | .TP | ||
74 | \fB\-U\fP | ||
83 | can·be·one·of | 75 | can·be·one·of |
84 | Sets·the·default·value·for·internal·encodings | 76 | Sets·the·default·value·for·internal·encodings |
85 | 77 | ("Encoding.default_internal")·to·UTF-8. | |
86 | .Pp | ||
... Open expanded diff ... |
Offset 1, 257 lines modified | Offset 1, 322 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·August·11,·2019 | ||
3 | . | 1 | .TH·IRB·\&1·"Ruby·Programmer's·Reference·Guide"·"August·11,·2019"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBirb\fP | |
7 | 4 | \-·Interactive·Ruby·Shell | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-version | ||
11 | .Op·Fl·dfUw | ||
12 | .Op·Fl·I·Ar·directory | ||
13 | .Op·Fl·r·Ar·library | ||
14 | .Op·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
15 | .Op·Fl·W·Ns·Op·Ar·level | ||
16 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·inspect | ||
17 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·multiline | ||
18 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·singleline | ||
19 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·echo | ||
20 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·colorize | ||
21 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·autocomplete | ||
22 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·verbose | ||
23 | .Op·Fl·-prompt·Ar·mode | ||
24 | .Op·Fl·-prompt-mode·Ar·mode | ||
25 | .Op·Fl·-inf-ruby-mode | ||
26 | .Op·Fl·-simple-prompt | ||
27 | .Op·Fl·-noprompt | ||
28 | .Op·Fl·-tracer | ||
29 | .Op·Fl·-back-trace-limit·Ar·n | ||
30 | . | 6 | .br |
7 | \fBirb\fP | ||
8 | [\fB\--version\fP] | ||
9 | [\fB\-dfUw\fP] | ||
10 | [\fB\-I\fP·\fIdirectory\fP] | ||
11 | [\fB\-r\fP·\fIlibrary\fP] | ||
12 | [\fB\-E\fP·\fIexternal\fP[:\fIinternal\fP]] | ||
13 | [\fB\-W\fP[\fIlevel\fP]] | ||
14 | [\fB\--\fP[no]inspect] | ||
15 | [\fB\--\fP[no]multiline] | ||
16 | [\fB\--\fP[no]singleline] | ||
17 | [\fB\--\fP[no]echo] | ||
18 | [\fB\--\fP[no]colorize] | ||
19 | [\fB\--\fP[no]autocomplete] | ||
20 | [\fB\--\fP[no]verbose] | ||
21 | [\fB\--prompt\fP·\fImode\fP] | ||
22 | [\fB\--prompt-mode\fP·\fImode\fP] | ||
23 | [\fB\--inf-ruby-mode\fP] | ||
24 | [\fB\--simple-prompt\fP] | ||
25 | [\fB\--noprompt\fP] | ||
26 | [\fB\--tracer\fP] | ||
27 | [\fB\--back-trace-limit\fP·\fIn\fP] | ||
28 | [\fB\--\fP] | ||
31 | 29 | [program_file] | |
32 | 30 | [argument·...] | |
33 | .Pp | ||
34 | .S | 31 | .SH·DESCRIPTION |
35 | 32 | \fBirb\fP | |
36 | is·the·REPL(read-eval-print·loop)·environment·for·Ruby·programs. | 33 | is·the·REPL(read-eval-print·loop)·environment·for·Ruby·programs. |
37 | .Pp | ||
38 | .S | 34 | .SH·OPTIONS |
39 | .Bl·-tag·-width·"1234567890123"·-compact | ||
40 | .Pp | ||
41 | .It·Fl·-version | ||
35 | .TP | ||
36 | \fB\--version\fP | ||
42 | Prints·the·version·of | 37 | Prints·the·version·of |
43 | .Nm·. | ||
44 | .Pp | ||
45 | .It·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
46 | 38 | \fB.\fP | |
39 | .TP | ||
40 | \fB\-E\fP·\fIexternal\fP[:\fIinternal\fP] | ||
41 | .TP | ||
42 | \fB\--encoding\fP·\fIexternal\fP[:\fIinternal\fP] | ||
47 | Same·as·`ruby·-E'·. | 43 | Same·as·`ruby·-E'·. |
48 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). | 44 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). |
49 | .Pp | ||
50 | You·can·omit·the·one·for·internal·encodings,·then·the·value | 45 | You·can·omit·the·one·for·internal·encodings,·then·the·value |
51 | 46 | ("Encoding.default_internal")·will·be·nil. | |
52 | .Pp | ||
53 | .It·Fl·I·Ar·path | ||
47 | .TP | ||
48 | \fB\-I\fP·\fIpath\fP | ||
54 | Same·as·`ruby·-I'·. | 49 | Same·as·`ruby·-I'·. |
55 | Specifies | 50 | Specifies |
56 | 51 | $LOAD_PATH | |
57 | directory | 52 | directory |
58 | .Pp | ||
59 | .It·Fl·U | ||
53 | .TP | ||
54 | \fB\-U\fP | ||
60 | Same·as·`ruby·-U'·. | 55 | Same·as·`ruby·-U'·. |
61 | Sets·the·default·value·for·internal·encodings | 56 | Sets·the·default·value·for·internal·encodings |
62 | 57 | ("Encoding.default_internal")·to·UTF-8. | |
63 | .Pp | ||
64 | .It·Fl·d | ||
58 | .TP | ||
59 | \fB\-d\fP | ||
65 | Same·as·`ruby·-d'·. | 60 | Same·as·`ruby·-d'·. |
66 | Sets | 61 | Sets |
67 | 62 | $DEBUG | |
68 | to·true. | 63 | to·true. |
69 | .Pp | ||
70 | .It·Fl·f | ||
64 | .TP | ||
65 | \fB\-f\fP | ||
71 | Suppresses·read·of | 66 | Suppresses·read·of |
72 | .Pa·~/.irbrc·. | ||
73 | .Pp | ||
74 | . | 67 | \fI~/.irbrc\fP. |
68 | .TP | ||
69 | \fB\-w\fP | ||
75 | Same·as·`ruby·-w'·. | 70 | Same·as·`ruby·-w'·. |
76 | .Pp | ||
77 | .Pp | ||
78 | .It·Fl·W | ||
71 | .TP | ||
72 | \fB\-W\fP | ||
79 | Same·as·`ruby·-W'·. | 73 | Same·as·`ruby·-W'·. |
80 | .Pp | ||
81 | .It·Fl·h | ||
82 | .It·Fl·-help | ||
74 | .TP | ||
75 | \fB\-h\fP | ||
... Open expanded diff ... |
Offset 1, 247 lines modified | Offset 1, 270 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·April·20,·2017 | ||
3 | . | 1 | .TH·RI·\&1·"Ruby·Programmer's·Reference·Guide"·"April·20,·2017"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBri\fP | |
7 | 4 | \-·Ruby·API·reference·front·end | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·ahilTv | ||
11 | .Op·Fl·d·Ar·DIRNAME | ||
12 | .Op·Fl·f·Ar·FORMAT | ||
13 | .Op·Fl·w·Ar·WIDTH | ||
14 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·pager | ||
15 | .Op·Fl·-server·Ns·Oo·=·Ns·Ar·PORT·Oc | ||
16 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·list-doc-dirs | ||
17 | .Op·Fl·-no-standard-docs | ||
18 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Bro·Cm·system·Ns·|·Ns·Cm·site·Ns·|·Ns·Cm·gems·Ns·|·Ns·Cm·home·Brc | ||
19 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·profile | ||
20 | .Op·Fl·-dump·Ns·=·Ns·Ar·CACHE | ||
21 | . | 6 | .br |
7 | \fBri\fP | ||
8 | [\fB\-ahilTv\fP] | ||
9 | [\fB\-d\fP·\fIDIRNAME\fP] | ||
10 | [\fB\-f\fP·\fIFORMAT\fP] | ||
11 | [\fB\-w\fP·\fIWIDTH\fP] | ||
12 | [\fB\--\fP[\fBno-\fP]\fBpager\fP] | ||
13 | [\fB\--server\fP[=\fIPORT\fP]] | ||
14 | [\fB\--\fP[\fBno-\fP]\fBlist-doc-dirs\fP] | ||
15 | [\fB\--no-standard-docs\fP] | ||
16 | [\fB\--\fP[\fBno-\fP]{\fBsystem\fP|\fBsite\fP|\fBgems\fP|\fBhome\fP}] | ||
17 | [\fB\--\fP[\fBno-\fP]\fBprofile\fP] | ||
18 | [\fB\--dump\fP=\fICACHE\fP] | ||
19 | [\fIname\fP·...] | ||
22 | .S | 20 | .SH·DESCRIPTION |
23 | 21 | \fBri\fP | |
24 | is·a·command-line·front·end·for·the·Ruby·API·reference. | 22 | is·a·command-line·front·end·for·the·Ruby·API·reference. |
25 | You·can·search·and·read·the·API·reference·for·classes·and·methods·with | 23 | You·can·search·and·read·the·API·reference·for·classes·and·methods·with |
26 | .Nm·. | ||
27 | .Pp | ||
28 | . | 24 | \fB.\fP |
25 | \fBri\fP | ||
29 | is·a·part·of·Ruby. | 26 | is·a·part·of·Ruby. |
30 | .Pp | ||
31 | .Ar·name | ||
27 | \fIname\fP | ||
32 | can·be: | 28 | can·be: |
33 | .Bl·-diag·-offset·indent | ||
34 | 29 | It·Class·|·Module·|·Module::Class | |
35 | .Pp | ||
36 | 30 | It·Class::method·|·Class#method·|·Class.method·|·method | |
37 | .Pp | ||
38 | 31 | It·gem_name:·|·gem_name:README·|·gem_name:History | |
39 | .El | ||
40 | .Pp | ||
41 | All·class·names·may·be·abbreviated·to·their·minimum·unambiguous·form. | 32 | All·class·names·may·be·abbreviated·to·their·minimum·unambiguous·form. |
42 | If·a·name·is·ambiguous,·all·valid·options·will·be·listed. | 33 | If·a·name·is·ambiguous,·all·valid·options·will·be·listed. |
43 | .Pp | ||
44 | A | 34 | A |
45 | 35 | `\&.' | |
46 | matches·either·class·or·instance·methods,·while·#method | 36 | matches·either·class·or·instance·methods,·while·#method |
47 | matches·only·instance·and·::method·matches·only·class·methods. | 37 | matches·only·instance·and·::method·matches·only·class·methods. |
48 | .Pp | ||
49 | README·and·other·files·may·be·displayed·by·prefixing·them·with·the·gem·name | 38 | README·and·other·files·may·be·displayed·by·prefixing·them·with·the·gem·name |
50 | they're·contained·in.··If·the·gem·name·is·followed·by·a | 39 | they're·contained·in.··If·the·gem·name·is·followed·by·a |
51 | 40 | `\&:' | |
52 | all·files·in·the·gem·will·be·shown. | 41 | all·files·in·the·gem·will·be·shown. |
53 | The·file·name·extension·may·be·omitted·where·it·is·unambiguous. | 42 | The·file·name·extension·may·be·omitted·where·it·is·unambiguous. |
54 | .Pp | ||
55 | For·example: | 43 | For·example: |
56 | .Bd·-literal·-offset·indent | ||
57 | ri·Fil | 44 | ri·Fil |
45 | .br | ||
58 | ri·File | 46 | ri·File |
47 | .br | ||
59 | ri·File.new | 48 | ri·File.new |
49 | .br | ||
60 | ri·zip | 50 | ri·zip |
51 | .br | ||
61 | ri·rdoc:README | 52 | ri·rdoc:README |
62 | .Ed | ||
63 | . | 53 | .br |
64 | Note·that·shell·quoting·or·escaping·may·be·required·for·method·names | 54 | Note·that·shell·quoting·or·escaping·may·be·required·for·method·names |
65 | containing·punctuation: | 55 | containing·punctuation: |
66 | .Bd·-literal·-offset·indent | ||
67 | ri·'Array.[]' | 56 | ri·'Array.[]' |
57 | .br | ||
68 | ri·compact\e! | 58 | ri·compact\e! |
69 | .Ed | ||
70 | . | 59 | .br |
71 | To·see·the·default·directories | 60 | To·see·the·default·directories |
72 | 61 | \fBri\fP | |
73 | will·search,·run: | 62 | will·search,·run: |
74 | .Bd·-literal·-offset·indent | ||
75 | ri·--list-doc-dirs | 63 | ri·--list-doc-dirs |
76 | .Ed | ||
77 | . | 64 | .br |
78 | Specifying·the | 65 | Specifying·the |
79 | 66 | \fB\--system\fP,\fB\--site\fP,\fB\--home\fP,\fB\--gems\fP, | |
80 | or | 67 | or |
81 | 68 | \fB\--doc-dir\fP | |
82 | options·will·limit | 69 | options·will·limit |
83 | 70 | \fBri\fP | |
84 | to·searching·only·the·specified·directories. | 71 | to·searching·only·the·specified·directories. |
85 | .Pp | ||
86 | .Nm | ||
72 | \fBri\fP | ||
87 | options·may·be·set·in·the | 73 | options·may·be·set·in·the |
88 | . | 74 | .IR·RI |
89 | environment·variable. | 75 | environment·variable. |
90 | .Pp | ||
91 | The | 76 | The |
92 | 77 | \fBri\fP | |
93 | pager·can·be·set·with·the | 78 | pager·can·be·set·with·the |
94 | . | 79 | .IR·RI_PAGER |
95 | environment·variable·or·the | 80 | environment·variable·or·the |
96 | . | 81 | .IR·PAGER |
97 | environment·variable. | 82 | environment·variable. |
98 | .Pp | ||
99 | .S | 83 | .SH·OPTIONS |
100 | .Bl·-tag·-width·"1234567890123"·-compact | ||
101 | .Pp | ||
... Open expanded diff ... |
Offset 1, 738 lines modified | Offset 1, 840 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·April·14,·2018 | ||
3 | . | 1 | .TH·RUBY·\&1·"Ruby·Programmer's·Reference·Guide"·"April·14,·2018"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBruby\fP | |
7 | 4 | \-·Interpreted·object-oriented·scripting·language | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-copyright | ||
11 | .Op·Fl·-version | ||
12 | .Op·Fl·SUacdlnpswvy | ||
13 | .Op·Fl·0·Ns·Op·Ar·octal | ||
14 | .Op·Fl·C·Ar·directory | ||
15 | .Op·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
16 | .Op·Fl·F·Ns·Op·Ar·pattern | ||
17 | .Op·Fl·I·Ar·directory | ||
18 | .Op·Fl·K·Ns·Op·Ar·c | ||
19 | .Op·Fl·T·Ns·Op·Ar·level | ||
20 | .Op·Fl·W·Ns·Op·Ar·level | ||
21 | .Op·Fl·e·Ar·command | ||
22 | .Op·Fl·i·Ns·Op·Ar·extension | ||
23 | .Op·Fl·r·Ar·library | ||
24 | .Op·Fl·x·Ns·Op·Ar·directory | ||
25 | .Op·Fl·-·Ns·Bro·Cm·enable·Ns·|·Ns·Cm·disable·Brc·Ns·-·Ns·Ar·FEATURE | ||
26 | .Op·Fl·-dump·Ns·=·Ns·Ar·target | ||
27 | .Op·Fl·-verbose | ||
28 | .Op·Fl·-crash-report·Ns·=·Ns·Ar·template | ||
29 | .Op·Fl·- | ||
30 | .Op·Ar·program_file | ||
31 | . | 6 | .br |
7 | \fBruby\fP | ||
8 | [\fB\--copyright\fP] | ||
9 | [\fB\--version\fP] | ||
10 | [\fB\-SUacdlnpswvy\fP] | ||
11 | [\fB\-0\fP[\fIoctal\fP]] | ||
12 | [\fB\-C\fP·\fIdirectory\fP] | ||
13 | [\fB\-E\fP·\fIexternal\fP[:\fIinternal\fP]] | ||
14 | [\fB\-F\fP[\fIpattern\fP]] | ||
15 | [\fB\-I\fP·\fIdirectory\fP] | ||
16 | [\fB\-K\fP[\fIc\fP]] | ||
17 | [\fB\-T\fP[\fIlevel\fP]] | ||
18 | [\fB\-W\fP[\fIlevel\fP]] | ||
19 | [\fB\-e\fP·\fIcommand\fP] | ||
20 | [\fB\-i\fP[\fIextension\fP]] | ||
21 | [\fB\-r\fP·\fIlibrary\fP] | ||
22 | [\fB\-x\fP[\fIdirectory\fP]] | ||
23 | [\fB\--\fP{\fBenable\fP|\fBdisable\fP}-\fIFEATURE\fP] | ||
24 | [\fB\--dump\fP=\fItarget\fP] | ||
25 | [\fB\--verbose\fP] | ||
26 | [\fB\--crash-report\fP=\fItemplate\fP] | ||
27 | [\fB\--\fP] | ||
28 | [\fIprogram_file\fP] | ||
29 | [\fIargument\fP·...] | ||
32 | .S | 30 | .SH·DESCRIPTION |
33 | Ruby·is·an·interpreted·scripting·language·for·quick·and·easy | 31 | Ruby·is·an·interpreted·scripting·language·for·quick·and·easy |
34 | object-oriented·programming.··It·has·many·features·to·process·text | 32 | object-oriented·programming.··It·has·many·features·to·process·text |
35 | files·and·to·do·system·management·tasks·(like·in·Perl).··It·is·simple, | 33 | files·and·to·do·system·management·tasks·(like·in·Perl).··It·is·simple, |
36 | straight-forward,·and·extensible. | 34 | straight-forward,·and·extensible. |
37 | .Pp | ||
38 | If·you·want·a·language·for·easy·object-oriented·programming,·or·you | 35 | If·you·want·a·language·for·easy·object-oriented·programming,·or·you |
39 | don't·like·the·Perl·ugliness,·or·you·do·like·the·concept·of·LISP,·but | 36 | don't·like·the·Perl·ugliness,·or·you·do·like·the·concept·of·LISP,·but |
40 | don't·like·too·many·parentheses,·Ruby·might·be·your·language·of | 37 | don't·like·too·many·parentheses,·Ruby·might·be·your·language·of |
41 | choice. | 38 | choice. |
42 | .S | 39 | .SH·FEATURES |
43 | Ruby's·features·are·as·follows: | 40 | Ruby's·features·are·as·follows: |
44 | . | 41 | .TP |
45 | . | 42 | .B·"Interpretive" |
46 | Ruby·is·an·interpreted·language,·so·you·don't·have·to·recompile | 43 | Ruby·is·an·interpreted·language,·so·you·don't·have·to·recompile |
47 | programs·written·in·Ruby·to·execute·them. | 44 | programs·written·in·Ruby·to·execute·them. |
48 | .Pp | ||
45 | .TP | ||
49 | . | 46 | .B·"Variables·have·no·type·(dynamic·typing)" |
50 | Variables·in·Ruby·can·contain·data·of·any·type.··You·don't·have·to | 47 | Variables·in·Ruby·can·contain·data·of·any·type.··You·don't·have·to |
51 | worry·about·variable·typing.··Consequently,·it·has·a·weaker·compile | 48 | worry·about·variable·typing.··Consequently,·it·has·a·weaker·compile |
52 | time·check. | 49 | time·check. |
53 | .Pp | ||
50 | .TP | ||
54 | . | 51 | .B·"No·declaration·needed" |
55 | You·can·use·variables·in·your·Ruby·programs·without·any·declarations. | 52 | You·can·use·variables·in·your·Ruby·programs·without·any·declarations. |
56 | Variable·names·denote·their·scope·-·global,·class,·instance,·or·local. | 53 | Variable·names·denote·their·scope·-·global,·class,·instance,·or·local. |
57 | .Pp | ||
54 | .TP | ||
58 | . | 55 | .B·"Simple·syntax" |
59 | Ruby·has·a·simple·syntax·influenced·slightly·from·Eiffel. | 56 | Ruby·has·a·simple·syntax·influenced·slightly·from·Eiffel. |
60 | .Pp | ||
57 | .TP | ||
61 | . | 58 | .B·"No·user-level·memory·management" |
62 | Ruby·has·automatic·memory·management.··Objects·no·longer·referenced | 59 | Ruby·has·automatic·memory·management.··Objects·no·longer·referenced |
63 | from·anywhere·are·automatically·collected·by·the·garbage·collector | 60 | from·anywhere·are·automatically·collected·by·the·garbage·collector |
64 | built·into·the·interpreter. | 61 | built·into·the·interpreter. |
65 | .Pp | ||
62 | .TP | ||
66 | . | 63 | .B·"Everything·is·an·object" |
67 | Ruby·is·a·purely·object-oriented·language,·and·was·so·since·its | 64 | Ruby·is·a·purely·object-oriented·language,·and·was·so·since·its |
68 | creation.··Even·such·basic·data·as·integers·are·seen·as·objects. | 65 | creation.··Even·such·basic·data·as·integers·are·seen·as·objects. |
69 | .Pp | ||
66 | .TP | ||
70 | . | 67 | .B·"Class,·inheritance,·and·methods" |
71 | Being·an·object-oriented·language,·Ruby·naturally·has·basic | 68 | Being·an·object-oriented·language,·Ruby·naturally·has·basic |
72 | features·like·classes,·inheritance,·and·methods. | 69 | features·like·classes,·inheritance,·and·methods. |
73 | .Pp | ||
70 | .TP | ||
74 | . | 71 | .B·"Singleton·methods" |
75 | Ruby·has·the·ability·to·define·methods·for·certain·objects.··For | 72 | Ruby·has·the·ability·to·define·methods·for·certain·objects.··For |
76 | example,·you·can·define·a·press-button·action·for·certain·widget·by | 73 | example,·you·can·define·a·press-button·action·for·certain·widget·by |
77 | defining·a·singleton·method·for·the·button.··Or,·you·can·make·up·your | 74 | defining·a·singleton·method·for·the·button.··Or,·you·can·make·up·your |
78 | own·prototype·based·object·system·using·singleton·methods,·if·you·want | 75 | own·prototype·based·object·system·using·singleton·methods,·if·you·want |
79 | to. | 76 | to. |
80 | .Pp | ||
77 | .TP | ||
81 | . | 78 | .B·"Mix-in·by·modules" |
82 | Ruby·intentionally·does·not·have·the·multiple·inheritance·as·it·is·a | 79 | Ruby·intentionally·does·not·have·the·multiple·inheritance·as·it·is·a |
83 | source·of·confusion.··Instead,·Ruby·has·the·ability·to·share | 80 | source·of·confusion.··Instead,·Ruby·has·the·ability·to·share |
84 | implementations·across·the·inheritance·tree.··This·is·often·called·a | 81 | implementations·across·the·inheritance·tree.··This·is·often·called·a |
85 | .Sq·Mix-in·. | ||
86 | 82 | `Mix-in'. | |
83 | .TP | ||
87 | . | 84 | .B·"Iterators" |
88 | Ruby·has·iterators·for·loop·abstraction. | 85 | Ruby·has·iterators·for·loop·abstraction. |
89 | .Pp | ||
86 | .TP | ||
90 | . | 87 | .B·"Closures" |
91 | In·Ruby,·you·can·objectify·the·procedure. | 88 | In·Ruby,·you·can·objectify·the·procedure. |
92 | .Pp | ||
89 | .TP | ||
... Open expanded diff ... |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary | 1 | ?rw-r--r--···0········0········0········4·1970-01-01·00:00:00.000000·debian-binary |
2 | ?rw-r--r--···0········0········0······666·1970-01-01·00:00:00.000000·control.tar.gz | 2 | ?rw-r--r--···0········0········0······666·1970-01-01·00:00:00.000000·control.tar.gz |
3 | ?rw-r--r--···0········0········0··907751 | 3 | ?rw-r--r--···0········0········0··9077516·1970-01-01·00:00:00.000000·data.tar.zst |
Offset 31, 15 lines modified | Offset 31, 15 lines modified | ||
31 | ··CONFIG["RUBY_SO_NAME"]·=·"$(RUBY_BASE_NAME)" | 31 | ··CONFIG["RUBY_SO_NAME"]·=·"$(RUBY_BASE_NAME)" |
32 | ··CONFIG["exec"]·=·"exec" | 32 | ··CONFIG["exec"]·=·"exec" |
33 | ··CONFIG["ruby_pc"]·=·"ruby-3.3.pc" | 33 | ··CONFIG["ruby_pc"]·=·"ruby-3.3.pc" |
34 | ··CONFIG["CC_WRAPPER"]·=·"" | 34 | ··CONFIG["CC_WRAPPER"]·=·"" |
35 | ··CONFIG["PACKAGE"]·=·"ruby" | 35 | ··CONFIG["PACKAGE"]·=·"ruby" |
36 | ··CONFIG["BUILTIN_TRANSSRCS"]·=·"·enc/trans/newline.c" | 36 | ··CONFIG["BUILTIN_TRANSSRCS"]·=·"·enc/trans/newline.c" |
37 | ··CONFIG["MKMF_VERBOSE"]·=·"0" | 37 | ··CONFIG["MKMF_VERBOSE"]·=·"0" |
38 | ··CONFIG["MANTYPE"]·=·" | 38 | ··CONFIG["MANTYPE"]·=·"man" |
39 | ··CONFIG["vendorarchhdrdir"]·=·"$(vendorhdrdir)/$(sitearch)" | 39 | ··CONFIG["vendorarchhdrdir"]·=·"$(vendorhdrdir)/$(sitearch)" |
40 | ··CONFIG["sitearchhdrdir"]·=·"$(sitehdrdir)/$(sitearch)" | 40 | ··CONFIG["sitearchhdrdir"]·=·"$(sitehdrdir)/$(sitearch)" |
41 | ··CONFIG["rubyarchhdrdir"]·=·"$(rubyhdrdir)/$(arch)" | 41 | ··CONFIG["rubyarchhdrdir"]·=·"$(rubyhdrdir)/$(arch)" |
42 | ··CONFIG["vendorhdrdir"]·=·"$(rubyhdrdir)/vendor_ruby" | 42 | ··CONFIG["vendorhdrdir"]·=·"$(rubyhdrdir)/vendor_ruby" |
43 | ··CONFIG["sitehdrdir"]·=·"$(rubyhdrdir)/site_ruby" | 43 | ··CONFIG["sitehdrdir"]·=·"$(rubyhdrdir)/site_ruby" |
44 | ··CONFIG["rubyhdrdir"]·=·"$(includedir)/$(RUBY_VERSION_NAME)" | 44 | ··CONFIG["rubyhdrdir"]·=·"$(includedir)/$(RUBY_VERSION_NAME)" |
45 | ··CONFIG["RUBY_SEARCH_PATH"]·=·"" | 45 | ··CONFIG["RUBY_SEARCH_PATH"]·=·"" |
Offset 15, 34 lines modified | Offset 15, 34 lines modified | ||
15 | 0000000600000fed000000010000046c0000000600000fee0000000100000474000000040000100400000031000004750000 | 15 | 0000000600000fed000000010000046c0000000600000fee0000000100000474000000040000100400000031000004750000 |
16 | 0004000010c80000003100000476000000080000118c000000030000139300000004000011c000000001000013c600000006 | 16 | 0004000010c80000003100000476000000080000118c000000030000139300000004000011c000000001000013c600000006 |
17 | 000011c400000001000013e400000008000011ca00000001000013e5000000040000120c00000001000013e9000000080000 | 17 | 000011c400000001000013e400000008000011ca00000001000013e5000000040000120c00000001000013e9000000080000 |
18 | 12100000000143006c6962656469742d646f630032303234303830382b332e3100723000425344207265706c6163656d656e | 18 | 12100000000143006c6962656469742d646f630032303234303830382b332e3100723000425344207265706c6163656d656e |
19 | 7420666f72206c6962726561646c696e65202d20446f63756d656e746174696f6e2066696c657300436f6d6d616e64206c69 | 19 | 7420666f72206c6962726561646c696e65202d20446f63756d656e746174696f6e2066696c657300436f6d6d616e64206c69 |
20 | 6e6520656469746f72206c6962726172792070726f766964696e672067656e65726963206c696e652065646974696e672c20 | 20 | 6e6520656469746f72206c6962726172792070726f766964696e672067656e65726963206c696e652065646974696e672c20 |
21 | 686973746f72792c20616e640a746f6b656e697a6174696f6e2066756e6374696f6e73202054686973207061636b61676520 | 21 | 686973746f72792c20616e640a746f6b656e697a6174696f6e2066756e6374696f6e73202054686973207061636b61676520 |
22 | 636f6e7461696e7320646f63756d656e746174696f6e2e00000066b50a2c726570726f64756369626c65000000000000 | 22 | 636f6e7461696e7320646f63756d656e746174696f6e2e00000066b50a2c726570726f64756369626c65000000000000ee21 |
23 | 4253442d332d436c6175736500506f6b79204d61696e7461696e657273203c706f6b79406c697374732e796f63746f70726f | 23 | 4253442d332d436c6175736500506f6b79204d61696e7461696e657273203c706f6b79406c697374732e796f63746f70726f |
24 | 6a6563742e6f72673e00646f6300687474703a2f2f7777772e74687279736f65652e646b2f656469746c696e652f006c696e | 24 | 6a6563742e6f72673e00646f6300687474703a2f2f7777772e74687279736f65652e646b2f656469746c696e652f006c696e |
25 | 757800636f7265325f3634000000000000000000000000000000000000005 | 25 | 757800636f7265325f3634000000000000000000000000000000000000005d130000000a0000000a0000000a0000000a0000 |
26 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a | 26 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a |
27 | 0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000 | 27 | 0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000 |
28 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a000000000000 | 28 | 000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000a0000000000000e0e |
29 | 0000000000008 | 29 | 000000000000817041ed41ed41ed41ed81a4a1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ff |
30 | a1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ff41ed | 30 | a1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ffa1ff41ed |
31 | 81a441ed81a40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 31 | 81a441ed81a40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
32 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 32 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
33 | 0000000066b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 | 33 | 0000000066b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 |
34 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c | 34 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c |
35 | 66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 | 35 | 66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b5 |
36 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c | 36 | 0a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c66b50a2c |
37 | 0000000035613531386366633164636231373333353966623461323561363431393536323066613663353761393861646330 | ||
38 | 3064383335653663313232376235616135620000000000000000000000000000000000000000000000000000000000000000 | ||
39 | 0000000000000000000037386539633639323735656238666566636331613664653064393338333731393938363864656536 | ||
40 | 3864353566633636383365306134323632623235343432340000663137343331366435393837353634313665333535383166 | ||
41 | 37 | 0000000030336330373430373534393762326161336132306332323965373661366261386630306463373062333866316233 | |
38 | 3233653761623263666263386661343564310000000000000000000000000000000000000000000000000000000000000000 | ||
39 | 0000000000000000000036636366366135343565303938363366626536353965653734326263616661626332313233353932 | ||
40 | 3935623966336636616263343565613565656132646138360000306263623837313835303266663365656130316634353861 | ||
41 | 3062383139646534636133626231656630313564343137663438643339363165313563643036663100000000000065646974 | ||
42 | 6c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33 | 42 | 6c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33 |
43 | 00656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c | 43 | 00656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c |
44 | 696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300 | 44 | 696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300 |
45 | 656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c69 | 45 | 656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c69 |
46 | 6e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e330065 | 46 | 6e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e330065 |
47 | 6469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e | 47 | 6469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e |
48 | 652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33006564 | 48 | 652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e3300656469746c696e652e33006564 |
Offset 102, 45 lines modified | Offset 102, 45 lines modified | ||
102 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 102 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
103 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 | 103 | 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
104 | 0000000000000000000000000000000000000000000100000002000000020000000200000002000000020000000200000002 | 104 | 0000000000000000000000000000000000000000000100000002000000020000000200000002000000020000000200000002 |
105 | 0000000200000002000000020000000200000002000000020000000200000002000000020000000200000002000000020000 | 105 | 0000000200000002000000020000000200000002000000020000000200000002000000020000000200000002000000020000 |
106 | 0002000000020000000200000002000000020000000200000002000000020000000200000002000000020000000200000002 | 106 | 0002000000020000000200000002000000020000000200000002000000020000000200000002000000020000000200000002 |
107 | 0000000200000002000000020000000200000002000000020000000200000002000000000000000100000000000000016469 | 107 | 0000000200000002000000020000000200000002000000020000000200000002000000000000000100000000000000016469 |
108 | 726563746f72790074726f6666206f722070726570726f636573736f7220696e7075742c2041534349492074657874000000 | 108 | 726563746f72790074726f6666206f722070726570726f636573736f7220696e7075742c2041534349492074657874000000 |
109 | 000000087574662d380037333838313238316664333439313136313637356366383066303364643338663765393933333339 | ||
110 | 3939346237323037396439636662623232653061363661620000000000083263386531653863356635323737643666353264 | ||
111 | 109 | 000000087574662d380061303635636264623766623631663161613734373935636236393866666539313537323332633337 | |
110 | 6534353964313565623761656430653663636537313632310000000000083131306233383262663538346631656538643533 | ||
111 | 6265393834623936626166363161333637386339333764366661646638336139333730323738336634313365000000003f00 | ||
112 | 000007fffffcb000000010 | 112 | 000007fffffcb000000010 |
113 | HEADERI18NTABLE:· | 113 | HEADERI18NTABLE:· |
114 | ·-·C | 114 | ·-·C |
115 | SIGSIZE:·2 | 115 | SIGSIZE:·20061 |
116 | SIGMD5:·751d5a9de98871516b460e5861fc1394 | ||
117 | SHA1HEADER:·cf1aa96cbcc4d1722c9e9094f7538e276757219d | ||
118 | S | 116 | SIGMD5:·346fbb1f7fa32588b8a6c22d70862a3e |
117 | SHA1HEADER:·e962705fa86f761cedd2f991b95ebfead5c9f3a4 | ||
118 | SHA256HEADER:·f8b6ecf6de3428df7d4eb114db39feecc6b7159765eb9d57b479c3a640fc4579 | ||
119 | NAME:·libedit-doc | 119 | NAME:·libedit-doc |
120 | VERSION:·20240808+3.1 | 120 | VERSION:·20240808+3.1 |
121 | RELEASE:·r0 | 121 | RELEASE:·r0 |
122 | SUMMARY:·BSD·replacement·for·libreadline·-·Documentation·files | 122 | SUMMARY:·BSD·replacement·for·libreadline·-·Documentation·files |
123 | DESCRIPTION:·Command·line·editor·library·providing·generic·line·editing,·history,·and·tokenization·functions | 123 | DESCRIPTION:·Command·line·editor·library·providing·generic·line·editing,·history,·and·tokenization·functions |
124 | This·package·contains·documentation. | 124 | This·package·contains·documentation. |
125 | BUILDTIME:·1723140652 | 125 | BUILDTIME:·1723140652 |
126 | BUILDHOST:·reproducible | 126 | BUILDHOST:·reproducible |
127 | SIZE:·6 | 127 | SIZE:·60961 |
128 | LICENSE:·BSD-3-Clause | 128 | LICENSE:·BSD-3-Clause |
129 | PACKAGER:·Poky·Maintainers·<poky@lists.yoctoproject.org> | 129 | PACKAGER:·Poky·Maintainers·<poky@lists.yoctoproject.org> |
130 | GROUP:·doc | 130 | GROUP:·doc |
131 | URL:·http://www.thrysoee.dk/editline/ | 131 | URL:·http://www.thrysoee.dk/editline/ |
132 | OS:·linux | 132 | OS:·linux |
133 | ARCH:·core2_64 | 133 | ARCH:·core2_64 |
134 | FILESIZES:· | 134 | FILESIZES:· |
135 | ·-·0 | 135 | ·-·0 |
136 | ·-·0 | 136 | ·-·0 |
137 | ·-·0 | 137 | ·-·0 |
138 | ·-·0 | 138 | ·-·0 |
139 | ·-·2 | 139 | ·-·23827 |
140 | ·-·10 | 140 | ·-·10 |
141 | ·-·10 | 141 | ·-·10 |
142 | ·-·10 | 142 | ·-·10 |
143 | ·-·10 | 143 | ·-·10 |
144 | ·-·10 | 144 | ·-·10 |
145 | ·-·10 | 145 | ·-·10 |
146 | ·-·10 | 146 | ·-·10 |
Offset 174, 17 lines modified | Offset 174, 17 lines modified | ||
174 | ·-·10 | 174 | ·-·10 |
175 | ·-·10 | 175 | ·-·10 |
176 | ·-·10 | 176 | ·-·10 |
177 | ·-·10 | 177 | ·-·10 |
178 | ·-·10 | 178 | ·-·10 |
179 | ·-·10 | 179 | ·-·10 |
180 | ·-·0 | 180 | ·-·0 |
181 | ·-· | 181 | ·-·3598 |
182 | ·-·0 | 182 | ·-·0 |
183 | ·-·33 | 183 | ·-·33136 |
184 | FILEMODES:· | 184 | FILEMODES:· |
185 | ·-·16877 | 185 | ·-·16877 |
186 | ·-·16877 | 186 | ·-·16877 |
187 | ·-·16877 | 187 | ·-·16877 |
188 | ·-·16877 | 188 | ·-·16877 |
189 | ·-·33188 | 189 | ·-·33188 |
190 | ·-·41471 | 190 | ·-·41471 |
Offset 332, 15 lines modified | Offset 332, 15 lines modified | ||
332 | ·-·1723140652 | 332 | ·-·1723140652 |
333 | ·-·1723140652 | 333 | ·-·1723140652 |
334 | FILEMD5S:· | 334 | FILEMD5S:· |
335 | ·-· | 335 | ·-· |
336 | ·-· | 336 | ·-· |
337 | ·-· | 337 | ·-· |
338 | ·-· | 338 | ·-· |
339 | ·-· | 339 | ·-·03c074075497b2aa3a20c229e76a6ba8f00dc70b38f1b323e7ab2cfbc8fa45d1 |
340 | ·-· | 340 | ·-· |
341 | ·-· | 341 | ·-· |
342 | ·-· | 342 | ·-· |
343 | ·-· | 343 | ·-· |
344 | ·-· | 344 | ·-· |
345 | ·-· | 345 | ·-· |
346 | ·-· | 346 | ·-· |
Offset 374, 17 lines modified | Offset 374, 17 lines modified | ||
374 | ·-· | 374 | ·-· |
375 | ·-· | 375 | ·-· |
376 | ·-· | 376 | ·-· |
377 | ·-· | 377 | ·-· |
... Open expanded diff ... |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr | 1 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr |
2 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share | 2 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share |
3 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man | 3 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man |
4 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man3 | 4 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man3 |
5 | -rw-r--r--···1········0········0····2 | 5 | -rw-r--r--···1········0········0····23827·2024-08-08·18:10:52.000000·./usr/share/man/man3/editline.3 |
6 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 | 6 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_deletestr.3·->·editline.3 |
7 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 | 7 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_end.3·->·editline.3 |
8 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 | 8 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_get.3·->·editline.3 |
9 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 | 9 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_getc.3·->·editline.3 |
10 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 | 10 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_gets.3·->·editline.3 |
11 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 | 11 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history.3·->·editline.3 |
12 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 | 12 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_history_end.3·->·editline.3 |
Offset 40, 10 lines modified | Offset 40, 10 lines modified | ||
40 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 | 40 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wgets.3·->·editline.3 |
41 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 | 41 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_winsertstr.3·->·editline.3 |
42 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 | 42 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wline.3·->·editline.3 |
43 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 | 43 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wparse.3·->·editline.3 |
44 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 | 44 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wpush.3·->·editline.3 |
45 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 | 45 | lrwxrwxrwx···1········0········0·······10·2024-08-08·18:10:52.000000·./usr/share/man/man3/el_wset.3·->·editline.3 |
46 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man5 | 46 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man5 |
47 | -rw-r--r--···1········0········0····· | 47 | -rw-r--r--···1········0········0·····3598·2024-08-08·18:10:52.000000·./usr/share/man/man5/editrc.5 |
48 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man7 | 48 | drwxr-xr-x···1········0········0········0·2024-08-08·18:10:52.000000·./usr/share/man/man7 |
49 | -rw-r--r--···1········0········0····33 | 49 | -rw-r--r--···1········0········0····33136·2024-08-08·18:10:52.000000·./usr/share/man/man7/editline.7 |
Offset 1, 1020 lines modified | Offset 1, 1172 lines modified | ||
1 | .TH·EDITLINE·3·"August·15,·2021"·"" | ||
1 | .\"» $NetBSD:·editline.3,v·1.102·2024/02/04·18:47:27·andvar·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2014·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·August·15,·2021 | ||
30 | .Dt·EDITLINE·3 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | .Nm·editline·, | ||
34 | .Nm·el_init·, | ||
35 | .Nm·el_init_fd·, | ||
36 | .Nm·el_end·, | ||
37 | .Nm·el_reset·, | ||
38 | .Nm·el_gets·, | ||
39 | .Nm·el_wgets·, | ||
40 | .Nm·el_getc·, | ||
41 | .Nm·el_wgetc·, | ||
42 | .Nm·el_push·, | ||
43 | .Nm·el_wpush·, | ||
44 | .Nm·el_parse·, | ||
45 | .Nm·el_wparse·, | ||
46 | .Nm·el_set·, | ||
47 | .Nm·el_wset·, | ||
48 | .Nm·el_get·, | ||
49 | .Nm·el_wget·, | ||
50 | .Nm·el_source·, | ||
51 | .Nm·el_resize·, | ||
52 | .Nm·el_cursor·, | ||
53 | .Nm·el_line·, | ||
54 | .Nm·el_wline·, | ||
55 | .Nm·el_insertstr·, | ||
56 | .Nm·el_winsertstr·, | ||
57 | .Nm·el_deletestr·, | ||
58 | .Nm·el_wdeletestr·, | ||
59 | .Nm·history_init·, | ||
60 | .Nm·history_winit·, | ||
61 | .Nm·history_end·, | ||
62 | .Nm·history_wend·, | ||
63 | .Nm·history·, | ||
64 | .Nm·history_w·, | ||
65 | .Nm·tok_init·, | ||
66 | .Nm·tok_winit·, | ||
67 | .Nm·tok_end·, | ||
68 | .Nm·tok_wend·, | ||
69 | .Nm·tok_reset·, | ||
70 | .Nm·tok_wreset·, | ||
71 | .Nm·tok_line·, | ||
72 | .Nm·tok_wline·, | ||
73 | .Nm·tok_str·, | ||
74 | 3 | \fBeditline\fP, | |
4 | \fBel_init\fP, | ||
5 | \fBel_init_fd\fP, | ||
6 | \fBel_end\fP, | ||
7 | \fBel_reset\fP, | ||
8 | \fBel_gets\fP, | ||
9 | \fBel_wgets\fP, | ||
10 | \fBel_getc\fP, | ||
11 | \fBel_wgetc\fP, | ||
12 | \fBel_push\fP, | ||
13 | \fBel_wpush\fP, | ||
14 | \fBel_parse\fP, | ||
15 | \fBel_wparse\fP, | ||
16 | \fBel_set\fP, | ||
17 | \fBel_wset\fP, | ||
18 | \fBel_get\fP, | ||
19 | \fBel_wget\fP, | ||
20 | \fBel_source\fP, | ||
21 | \fBel_resize\fP, | ||
22 | \fBel_cursor\fP, | ||
23 | \fBel_line\fP, | ||
24 | \fBel_wline\fP, | ||
25 | \fBel_insertstr\fP, | ||
26 | \fBel_winsertstr\fP, | ||
27 | \fBel_deletestr\fP, | ||
28 | \fBel_wdeletestr\fP, | ||
29 | \fBhistory_init\fP, | ||
30 | \fBhistory_winit\fP, | ||
31 | \fBhistory_end\fP, | ||
32 | \fBhistory_wend\fP, | ||
33 | \fBhistory\fP, | ||
34 | \fBhistory_w\fP, | ||
35 | \fBtok_init\fP, | ||
36 | \fBtok_winit\fP, | ||
37 | \fBtok_end\fP, | ||
38 | \fBtok_wend\fP, | ||
39 | \fBtok_reset\fP, | ||
40 | \fBtok_wreset\fP, | ||
41 | \fBtok_line\fP, | ||
42 | \fBtok_wline\fP, | ||
43 | \fBtok_str\fP, | ||
44 | \fBtok_wstr\fP | ||
75 | 45 | \-·line·editor,·history·and·tokenization·functions | |
76 | .S | 46 | .SH·LIBRARY |
77 | 47 | Command·Line·Editor·Library·(libedit,·-ledit) | |
78 | .S | 48 | .SH·SYNOPSIS |
79 | .In·histedit.h | ||
80 | .Ft·EditLine·* | ||
81 | .Fn·el_init·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr" | ||
82 | .Ft·EditLine·* | ||
83 | .Fn·el_init_fd·"const·char·*prog"·"FILE·*fin"·"FILE·*fout"·"FILE·*ferr"·"int·fdin"·"int·fdout"·"int·fderr" | ||
84 | .Ft·void | ||
85 | .Fn·el_end·"EditLine·*e" | ||
... Open expanded diff ... |
Offset 1, 326 lines modified | Offset 1, 142 lines modified | ||
1 | .TH·EDITRC·5·"May·22,·2016"·"" | ||
1 | .\"» $NetBSD:·editrc.5,v·1.34·2022/12/06·00:59:20·uwe·Exp·$ | ||
2 | .\" | ||
3 | .\"·Copyright·(c)·1997-2000·The·NetBSD·Foundation,·Inc. | ||
4 | .\"·All·rights·reserved. | ||
5 | .\" | ||
6 | .\"·This·file·was·contributed·to·The·NetBSD·Foundation·by·Luke·Mewburn. | ||
7 | .\" | ||
8 | .\"·Redistribution·and·use·in·source·and·binary·forms,·with·or·without | ||
9 | .\"·modification,·are·permitted·provided·that·the·following·conditions | ||
10 | .\"·are·met: | ||
11 | .\"·1.·Redistributions·of·source·code·must·retain·the·above·copyright | ||
12 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer. | ||
13 | .\"·2.·Redistributions·in·binary·form·must·reproduce·the·above·copyright | ||
14 | .\"····notice,·this·list·of·conditions·and·the·following·disclaimer·in·the | ||
15 | .\"····documentation·and/or·other·materials·provided·with·the·distribution. | ||
16 | .\" | ||
17 | .\"·THIS·SOFTWARE·IS·PROVIDED·BY·THE·NETBSD·FOUNDATION,·INC.·AND·CONTRIBUTORS | ||
18 | .\"·``AS·IS''·AND·ANY·EXPRESS·OR·IMPLIED·WARRANTIES,·INCLUDING,·BUT·NOT·LIMITED | ||
19 | .\"·TO,·THE·IMPLIED·WARRANTIES·OF·MERCHANTABILITY·AND·FITNESS·FOR·A·PARTICULAR | ||
20 | .\"·PURPOSE·ARE·DISCLAIMED.··IN·NO·EVENT·SHALL·THE·FOUNDATION·OR·CONTRIBUTORS | ||
21 | .\"·BE·LIABLE·FOR·ANY·DIRECT,·INDIRECT,·INCIDENTAL,·SPECIAL,·EXEMPLARY,·OR | ||
22 | .\"·CONSEQUENTIAL·DAMAGES·(INCLUDING,·BUT·NOT·LIMITED·TO,·PROCUREMENT·OF | ||
23 | .\"·SUBSTITUTE·GOODS·OR·SERVICES;·LOSS·OF·USE,·DATA,·OR·PROFITS;·OR·BUSINESS | ||
24 | .\"·INTERRUPTION)·HOWEVER·CAUSED·AND·ON·ANY·THEORY·OF·LIABILITY,·WHETHER·IN | ||
25 | .\"·CONTRACT,·STRICT·LIABILITY,·OR·TORT·(INCLUDING·NEGLIGENCE·OR·OTHERWISE) | ||
26 | .\"·ARISING·IN·ANY·WAY·OUT·OF·THE·USE·OF·THIS·SOFTWARE,·EVEN·IF·ADVISED·OF·THE | ||
27 | .\"·POSSIBILITY·OF·SUCH·DAMAGE. | ||
28 | .\" | ||
29 | .Dd·May·22,·2016 | ||
30 | .Dt·EDITRC·5 | ||
31 | .Os | ||
32 | .S | 2 | .SH·NAME |
33 | 3 | \fBeditrc\fP | |
34 | 4 | \-·configuration·file·for·editline·library | |
35 | .S | 5 | .SH·SYNOPSIS |
36 | . | 6 | .br |
7 | \fBeditrc\fP | ||
37 | .S | 8 | .SH·DESCRIPTION |
38 | The | 9 | The |
39 | 10 | \fBeditrc\fP | |
40 | file·defines·various·settings·to·be·used·by·the | 11 | file·defines·various·settings·to·be·used·by·the |
41 | 12 | \fBeditline\fP(3) | |
42 | library. | 13 | library. |
43 | .Pp | ||
44 | The·format·of·each·line·is: | 14 | The·format·of·each·line·is: |
45 | .Pp | ||
46 | .D1·Oo·Ar·prog·Ns·Ic·\&:·Oc·Ns·Ar·command·Oo·Ar·arg·...·Oc | ||
47 | .Pp | ||
48 | .Ar·command | ||
49 | is·one·of·the | 15 | is·one·of·the |
50 | .Xr·editline·3 | ||
51 | builtin·commands. | 16 | builtin·commands. |
52 | Refer·to | 17 | Refer·to |
53 | .Sx·BUILTIN·COMMANDS | ||
54 | for·more·information. | 18 | for·more·information. |
55 | .Pp | ||
56 | .Ar·prog | ||
57 | is·the·program·name·string·that·a·program·defines·when·it·calls | 19 | is·the·program·name·string·that·a·program·defines·when·it·calls |
58 | .Xr·el_init·3 | ||
59 | to·set·up | 20 | to·set·up |
60 | .Xr·editline·3·, | ||
61 | which·is·usually | 21 | which·is·usually |
62 | .Va·argv·Ns·Li·[0]·. | ||
63 | .Ar·command | ||
64 | will·be·executed·for·any·program·which·matches | 22 | will·be·executed·for·any·program·which·matches |
65 | .Ar·prog·. | ||
66 | .Pp | ||
67 | .Ar·prog | ||
68 | may·also·be·a | 23 | may·also·be·a |
69 | .Xr·regex·3 | ||
70 | style | 24 | style |
71 | regular·expression,·in·which·case | 25 | regular·expression,·in·which·case |
72 | .Ar·command | ||
73 | will·be·executed·for·any·program·that·matches·the·regular·expression. | 26 | will·be·executed·for·any·program·that·matches·the·regular·expression. |
74 | .Pp | ||
75 | If | 27 | If |
76 | .Ar·prog | ||
77 | is·absent, | 28 | is·absent, |
78 | .Ar·command | ||
79 | is·executed·for·all·programs. | 29 | is·executed·for·all·programs. |
80 | .Sh·BUILTIN·COMMANDS | ||
81 | The | 30 | The |
82 | .Nm·editline | ||
83 | library·has·some·builtin·commands,·which·affect·the·way | 31 | library·has·some·builtin·commands,·which·affect·the·way |
84 | that·the·line·editing·and·history·functions·operate. | 32 | that·the·line·editing·and·history·functions·operate. |
85 | These·are·based·on·similar·named·builtins·present·in·the | 33 | These·are·based·on·similar·named·builtins·present·in·the |
86 | .Xr·tcsh·1 | ||
87 | shell. | 34 | shell. |
88 | .Pp | ||
89 | The·following·builtin·commands·are·available: | 35 | The·following·builtin·commands·are·available: |
90 | .Bl·-tag·-width·4n | ||
91 | .It·Ic·bind·Oo·Fl·aeklrsv·Oc·Op·Ar·key·Op·Ar·command | ||
92 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and | 36 | Without·options·and·arguments,·list·all·bound·keys·and·macros,·and |
93 | the·editor·command·or·input·string·to·which·each·one·is·bound. | 37 | the·editor·command·or·input·string·to·which·each·one·is·bound. |
94 | If·only | 38 | If·only |
95 | .Ar·key | ||
96 | is·supplied,·show·the·binding·for·that·key·or·macro. | 39 | is·supplied,·show·the·binding·for·that·key·or·macro. |
97 | If | 40 | If |
98 | .Ar·key·command | ||
99 | is·supplied,·bind·the·editor | 41 | is·supplied,·bind·the·editor |
100 | .Ar·command | ||
101 | to·that·key·or·macro. | 42 | to·that·key·or·macro. |
102 | .Pp | ||
103 | The·options·are·as·follows: | 43 | The·options·are·as·follows: |
104 | .Bl·-tag·-width·4n | ||
105 | .It·Fl·a | ||
106 | List·or·change·key·bindings·in·the | 44 | List·or·change·key·bindings·in·the |
107 | .Xr·vi·1 | ||
108 | mode·alternate·(command·mode)·key·map. | 45 | mode·alternate·(command·mode)·key·map. |
109 | .It·Fl·e | ||
110 | Bind·all·keys·to·the·standard | 46 | Bind·all·keys·to·the·standard |
111 | .Tn·GNU | ||
112 | Emacs-like·bindings. | 47 | Emacs-like·bindings. |
113 | .It·Fl·k | ||
114 | .Ar·key | ||
115 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of | 48 | is·interpreted·as·a·symbolic·arrow·key·name,·which·may·be·one·of |
116 | .Ic·up·, | ||
117 | .Ic·down·, | ||
118 | .Ic·left | ||
119 | or | 49 | or |
120 | .Ic·right·. | ||
121 | .It·Fl·l | ||
122 | List·all·editor·commands·and·a·short·description·of·each. | 50 | List·all·editor·commands·and·a·short·description·of·each. |
123 | .It·Fl·r | ||
124 | Remove·the·binding·of·the·key·or·macro | 51 | Remove·the·binding·of·the·key·or·macro |
125 | .Ar·key·. | ||
... Open expanded diff ... |
Offset 1, 935 lines modified | Offset 1, 1001 lines modified | ||
1 | .TH·EDITLINE·7·"April·6,·2024"·"" | ||
1 | .\"» $NetBSD:·editline.7,v·1.6·2024/04/06·13:36:11·christos·Exp·$ | ||
2 | .\"» $OpenBSD:·editline.7,v·1.1·2016/04/20·01:11:45·schwarze·Exp·$ | ||
3 | .\" | ||
4 | .\"·Copyright·(c)·2016·Ingo·Schwarze·<schwarze@openbsd.org> | ||
5 | .\" | ||
6 | .\"·Permission·to·use,·copy,·modify,·and·distribute·this·software·for·any | ||
7 | .\"·purpose·with·or·without·fee·is·hereby·granted,·provided·that·the·above | ||
8 | .\"·copyright·notice·and·this·permission·notice·appear·in·all·copies. | ||
9 | .\" | ||
10 | .\"·THE·SOFTWARE·IS·PROVIDED·"AS·IS"·AND·THE·AUTHOR·DISCLAIMS·ALL·WARRANTIES | ||
11 | .\"·WITH·REGARD·TO·THIS·SOFTWARE·INCLUDING·ALL·IMPLIED·WARRANTIES·OF | ||
12 | .\"·MERCHANTABILITY·AND·FITNESS.·IN·NO·EVENT·SHALL·THE·AUTHOR·BE·LIABLE·FOR | ||
13 | .\"·ANY·SPECIAL,·DIRECT,·INDIRECT,·OR·CONSEQUENTIAL·DAMAGES·OR·ANY·DAMAGES | ||
14 | .\"·WHATSOEVER·RESULTING·FROM·LOSS·OF·USE,·DATA·OR·PROFITS,·WHETHER·IN·AN | ||
15 | .\"·ACTION·OF·CONTRACT,·NEGLIGENCE·OR·OTHER·TORTIOUS·ACTION,·ARISING·OUT·OF | ||
16 | .\"·OR·IN·CONNECTION·WITH·THE·USE·OR·PERFORMANCE·OF·THIS·SOFTWARE. | ||
17 | .\" | ||
18 | .Dd·April·6,·2024 | ||
19 | .Dt·EDITLINE·7 | ||
20 | .Os | ||
21 | .S | 2 | .SH·NAME |
22 | 3 | \fBeditline\fP | |
23 | 4 | \-·line·editing·user·interface | |
24 | .S | 5 | .SH·DESCRIPTION |
25 | When·a·program·using·the | 6 | When·a·program·using·the |
26 | 7 | \fBeditline\fP(3) | |
27 | library·prompts·for·an·input·string·using·the·function | 8 | library·prompts·for·an·input·string·using·the·function |
28 | 9 | \fBel_wgets\fP(3), | |
29 | it·reads·characters·from·the·terminal. | 10 | it·reads·characters·from·the·terminal. |
30 | Invalid·input·bytes·that·do·not·form·characters·are·silently | 11 | Invalid·input·bytes·that·do·not·form·characters·are·silently |
31 | discarded. | 12 | discarded. |
32 | For·each·character·read,·one·editor·command·is·executed. | 13 | For·each·character·read,·one·editor·command·is·executed. |
33 | The·mapping·of·input·characters·to·editor·commands·depends·on·the | 14 | The·mapping·of·input·characters·to·editor·commands·depends·on·the |
34 | editing·mode. | 15 | editing·mode. |
35 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, | 16 | There·are·three·editing·modes:·vi·insert·mode,·vi·command·mode, |
36 | and·emacs·mode. | 17 | and·emacs·mode. |
37 | The·default·is·vi·insert·mode. | 18 | The·default·is·vi·insert·mode. |
38 | The·program·can·switch·the·default·to·emacs·mode·by·using·the | 19 | The·program·can·switch·the·default·to·emacs·mode·by·using·the |
39 | 20 | \fBel_set\fP(3) | |
40 | or | 21 | or |
41 | 22 | \fBel_parse\fP(3) | |
42 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the | 23 | functions,·and·the·user·can·switch·to·emacs·mode·either·in·the |
43 | 24 | \fBeditrc\fP(5) | |
44 | configuration·file·or·interactively·with·the | 25 | configuration·file·or·interactively·with·the |
45 | 26 | \fBed-command\fP | |
46 | editor·command,·in·all·three·cases·executing·the | 27 | editor·command,·in·all·three·cases·executing·the |
47 | 28 | \fBbind·Fl·e\fP | |
48 | builtin·command. | 29 | builtin·command. |
49 | .Pp | ||
50 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an | 30 | If·trying·to·read·from·the·terminal·results·in·end·of·file·or·an |
51 | error,·the·library·signals·end·of·file·to·the·program·and·does·not | 31 | error,·the·library·signals·end·of·file·to·the·program·and·does·not |
52 | return·a·string. | 32 | return·a·string. |
53 | .S | 33 | .SS·Input·character·bindings |
54 | All·default·bindings·described·below·can·be·overridden·by·individual | 34 | All·default·bindings·described·below·can·be·overridden·by·individual |
55 | programs·and·can·be·changed·with·the | 35 | programs·and·can·be·changed·with·the |
56 | .Xr·editrc·5 | ||
57 | 36 | \fBeditrc\fP(5) | |
37 | \fBbind\fP | ||
58 | builtin·command. | 38 | builtin·command. |
59 | .Pp | ||
60 | In·the·following·tables, | 39 | In·the·following·tables, |
61 | 40 | `Ctrl-' | |
62 | indicates·a·character·with·the·bit·0x40·flipped,·and | 41 | indicates·a·character·with·the·bit·0x40·flipped,·and |
63 | 42 | `Meta-' | |
64 | indicates·a·character·with·the·bit·0x80·set. | 43 | indicates·a·character·with·the·bit·0x80·set. |
65 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered | 44 | In·vi·insert·mode·and·in·emacs·mode,·all·Meta-characters·considered |
66 | printable·by·the·current | 45 | printable·by·the·current |
67 | 46 | \fBlocale\fP(1) | |
68 | are·bound·to | 47 | are·bound·to |
69 | 48 | \fBed-insert\fP | |
70 | instead·of·to·the·editor·command·listed·below. | 49 | instead·of·to·the·editor·command·listed·below. |
71 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not | 50 | Consequently,·in·UTF-8·mode,·most·of·the·Meta-characters·are·not |
72 | directly·accessible·because·their·code·points·are·occupied·by | 51 | directly·accessible·because·their·code·points·are·occupied·by |
73 | printable·Unicode·characters,·and·Meta-characters·are·usually·input | 52 | printable·Unicode·characters,·and·Meta-characters·are·usually·input |
74 | using·the | 53 | using·the |
75 | 54 | \fBem-meta-next\fP | |
76 | editor·command. | 55 | editor·command. |
77 | For·example,·to·enter | 56 | For·example,·to·enter |
78 | 57 | `Meta-B' | |
79 | in·order·to·call·the | 58 | in·order·to·call·the |
80 | 59 | \fBed-prev-word\fP | |
81 | editor·command·in·emacs·mode,·call | 60 | editor·command·in·emacs·mode,·call |
82 | 61 | \fBem-meta-next\fP | |
83 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), | 62 | by·pressing·and·releasing·the·escape·key·(or·equivalently,·Ctrl-[), |
84 | then·press·and·release·the | 63 | then·press·and·release·the |
85 | 64 | `B' | |
86 | key. | 65 | key. |
87 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example | 66 | If·you·have·configured·a·Meta-key·on·your·keyboard,·for·example |
88 | with | 67 | with |
89 | 68 | `setxkbmap'·-option·altwin:left_meta_win·, | |
90 | the·Ctrl-Meta-characters·are·directly·accessible. | 69 | the·Ctrl-Meta-characters·are·directly·accessible. |
91 | For·example,·to·enter | 70 | For·example,·to·enter |
92 | 71 | `Ctrl-Meta-H' | |
93 | in·order·to·call·the | 72 | in·order·to·call·the |
94 | 73 | \fBed-delete-prev-word\fP | |
95 | editor·command·in·emacs·mode,·hold·down·the·keys | 74 | editor·command·in·emacs·mode,·hold·down·the·keys |
96 | .Sq·Ctrl·, | ||
97 | 75 | `Ctrl', | |
76 | `Meta', | ||
98 | and | 77 | and |
99 | 78 | `H' | |
100 | at·the·same·time. | 79 | at·the·same·time. |
101 | Alternatively,·press·and·release·the·escape·key,·then·press·and | 80 | Alternatively,·press·and·release·the·escape·key,·then·press·and |
102 | release | 81 | release |
103 | .Sq·Ctrl-H·. | ||
104 | 82 | `Ctrl-H'. | |
105 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor | 83 | In·vi·input·mode,·input·characters·are·bound·to·the·following·editor |
106 | commands·by·default: | 84 | commands·by·default: |
107 | .Bl·-column·-offset·indent·"Ctrl-Z,·TSTP"·"ed-search-next-history" | ||
108 | 85 | It·Ctrl-D,·EOF·Ta·\fBvi-list-or-eof\fP | |
109 | 86 | It·Ctrl-H,·BS·Ta·\fBvi-delete-prev-char\fP | |
110 | 87 | It·Ctrl-J,·LF·Ta·\fBed-newline\fP | |
111 | 88 | It·Ctrl-M,·CR·Ta·\fBed-newline\fP | |
112 | 89 | It·Ctrl-Q·Ta·\fBed-tty-start-output\fP | |
113 | 90 | It·Ctrl-S·Ta·\fBed-tty-stop-output\fP | |
114 | 91 | It·Ctrl-U·Ta·\fBvi-kill-line-prev\fP | |
115 | 92 | It·Ctrl-V·Ta·\fBed-quoted-insert\fP | |
116 | 93 | It·Ctrl-W·Ta·\fBed-delete-prev-word\fP | |
117 | 94 | It·Ctrl-[,·ESC·Ta·\fBvi-command-mode\fP | |
118 | 95 | It·Ctrl-\e,·QUIT·Ta·\fBed-tty-sigquit\fP | |
119 | 96 | It·Ctrl-?,·DEL·Ta·\fBvi-delete-prev-char\fP | |
120 | .El | ||
121 | .Pp | ||
122 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are | 97 | All·other·input·characters·except·the·NUL·character·(Ctrl-@)·are |
... Open expanded diff ... |
Offset 1920, 17 lines modified | Offset 1920, 17 lines modified | ||
1920 | 3134343961303136373739366264636639333963326661613933316231643931343833373762326663623331366632623732 | 1920 | 3134343961303136373739366264636639333963326661613933316231643931343833373762326663623331366632623732 |
1921 | 3330666137306261366600636436613937663330333764636333636135613864663430366264613233393430306638626139 | 1921 | 3330666137306261366600636436613937663330333764636333636135613864663430366264613233393430306638626139 |
1922 | 3936656163376366323663613730626536316265666663383300373664373532613637666437303366666533353062653466 | 1922 | 3936656163376366323663613730626536316265666663383300373664373532613637666437303366666533353062653466 |
1923 | 6532303337623765323961373865356266653761646532663134653064303435396139313135646300663837623562303634 | 1923 | 6532303337623765323961373865356266653761646532663134653064303435396139313135646300663837623562303634 |
1924 | 3963626665333466383734623861336231303162366337396236653335306439356335663132326161353434313464373935 | 1924 | 3963626665333466383734623861336231303162366337396236653335306439356335663132326161353434313464373935 |
1925 | 6638343766006661663061383334313931313135653635393732366130363831663831353535653366666566313364303235 | 1925 | 6638343766006661663061383334313931313135653635393732366130363831663831353535653366666566313364303235 |
1926 | 6464363334333466383161373634656565333836003463656264663563363566386365613962643539653338663263366438 | 1926 | 6464363334333466383161373634656565333836003463656264663563363566386365613962643539653338663263366438 |
1927 | 343563383064633566643165333339663164313566326635376461356539653731343500006 | 1927 | 3435633830646335666431653333396631643135663266353764613565396537313435000064313565326564633864613565 |
1928 | 3 | 1928 | 3636653834336464613439633265616532333830646430666662386262373338333266663965636664633937353038303962 |
1929 | 1929 | 6100006636613631623963333432373633303931623866363663353635626437323966323637306262383938303335643534 | |
1930 | 6438313366653738393038653564656233003966326461396633353730326438656437306237316162643466653563346539 | 1930 | 6438313366653738393038653564656233003966326461396633353730326438656437306237316162643466653563346539 |
1931 | 3963386436356465303965333737653861653236326537626637633236363461003930326337376362313565303738383564 | 1931 | 3963386436356465303965333737653861653236326537626637633236363461003930326337376362313565303738383564 |
1932 | 3035373537626233646261313434333466356162353234653433346566333031333366313262323732363862613832000000 | 1932 | 3035373537626233646261313434333466356162353234653433346566333031333366313262323732363862613832000000 |
1933 | 0000383666316136643461323939313834663161316637616534633266653830663137386265656435356364663630386638 | 1933 | 0000383666316136643461323939313834663161316637616534633266653830663137386265656435356364663630386638 |
1934 | 3362343964376264656661336666646100373130383363636264363761313461343362666137386433653464633066346235 | 1934 | 3362343964376264656661336666646100373130383363636264363761313461343362666137386433653464633066346235 |
1935 | 3033623963633138653562346231643638366463306639656637633463633000613366616632366137353763656430373361 | 1935 | 3033623963633138653562346231643638366463306639656637633463633000613366616632366137353763656430373361 |
1936 | 6161653062643130343831333430663533653232316134663530643861363033333539313535353337343735326500316237 | 1936 | 6161653062643130343831333430663533653232316134663530643861363033333539313535353337343735326500316237 |
Offset 6559, 24 lines modified | Offset 6559, 24 lines modified | ||
6559 | 742c20776974682076657279206c6f6e67206c696e65732028333830322900415343494920746578742c2077697468207665 | 6559 | 742c20776974682076657279206c6f6e67206c696e65732028333830322900415343494920746578742c2077697468207665 |
6560 | 7279206c6f6e67206c696e657320283332362900415343494920746578742c20776974682076657279206c6f6e67206c696e | 6560 | 7279206c6f6e67206c696e657320283332362900415343494920746578742c20776974682076657279206c6f6e67206c696e |
6561 | 657320283630312900415343494920746578742c20776974682076657279206c6f6e67206c696e6573202831323637290041 | 6561 | 657320283630312900415343494920746578742c20776974682076657279206c6f6e67206c696e6573202831323637290041 |
6562 | 5343494920746578742c20776974682076657279206c6f6e67206c696e657320283336352900415343494920746578742c20 | 6562 | 5343494920746578742c20776974682076657279206c6f6e67206c696e657320283336352900415343494920746578742c20 |
6563 | 776974682076657279206c6f6e67206c696e65732028323038382900415343494920746578742c2077697468207665727920 | 6563 | 776974682076657279206c6f6e67206c696e65732028323038382900415343494920746578742c2077697468207665727920 |
6564 | 6c6f6e67206c696e657320283631332900415343494920746578742c20776974682076657279206c6f6e67206c696e657320 | 6564 | 6c6f6e67206c696e657320283631332900415343494920746578742c20776974682076657279206c6f6e67206c696e657320 |
6565 | 283634372900415343494920746578742c20776974682076657279206c6f6e67206c696e6573202833323129004153434949 | 6565 | 283634372900415343494920746578742c20776974682076657279206c6f6e67206c696e6573202833323129004153434949 |
6566 | 20746578742c20776974682076657279206c6f6e67206c696e657320283337372900000000087574662d3800 | 6566 | 20746578742c20776974682076657279206c6f6e67206c696e657320283337372900000000087574662d3800383933353637 |
6567 | 3630313661663934386134343835333333383336326436653664646561373666333063353161646362396231336532323066 | ||
6568 | 6538343564343464000000000008363932373165313961353539396261646364663037396266646536653565383436303138 | ||
6569 | 3 | 6567 | 6537636635366162323435333538363865376235633639363235623632643435643263303035623065393239653937323234 |
6568 | 3436386431383166000000000008323132303935663732613163653733326234636535363239653436353065653436383164 | ||
6569 | 38393436383163313161613832653835353635326230636336366262000000003f00000007fffffc9000000010 | ||
6570 | HEADERI18NTABLE:· | 6570 | HEADERI18NTABLE:· |
6571 | ·-·C | 6571 | ·-·C |
6572 | SIGSIZE:·75754 | 6572 | SIGSIZE:·7575420 |
6573 | SIGMD5:·fb3a8e2b942ae1ee597d7325a38a7a7b | ||
6574 | SHA1HEADER:·033abd6342e31d01f2492fc0c05a8e4dd035af55 | ||
6575 | S | 6573 | SIGMD5:·80284ae99099aa3546d614d1b3f89d16 |
6574 | SHA1HEADER:·787cd8b0cdb94e3c50ce62c5adfc6b2af52d387b | ||
6575 | SHA256HEADER:·48f4e03b798cd3a3ffc565de7d71583f3c4d29cad124275f76ac92f229b477b3 | ||
6576 | NAME:·ruby | 6576 | NAME:·ruby |
6577 | VERSION:·3.3.4 | 6577 | VERSION:·3.3.4 |
6578 | RELEASE:·r0 | 6578 | RELEASE:·r0 |
6579 | SUMMARY:·An·interpreter·of·object-oriented·scripting·language | 6579 | SUMMARY:·An·interpreter·of·object-oriented·scripting·language |
6580 | DESCRIPTION:·Ruby·is·an·interpreted·scripting·language·for·quick·and·easy·object-·oriented·programming.·It·has | 6580 | DESCRIPTION:·Ruby·is·an·interpreted·scripting·language·for·quick·and·easy·object-·oriented·programming.·It·has |
6581 | many·features·to·process·text·files·and·to·do·system·management·tasks·(as·in·Perl).·It·is·simple, | 6581 | many·features·to·process·text·files·and·to·do·system·management·tasks·(as·in·Perl).·It·is·simple, |
6582 | straight-forward,·and·extensible. | 6582 | straight-forward,·and·extensible. |
Offset 17945, 15 lines modified | Offset 17945, 15 lines modified | ||
17945 | ·-·4fbf1449a0167796bdcf939c2faa931b1d9148377b2fcb316f2b7230fa70ba6f | 17945 | ·-·4fbf1449a0167796bdcf939c2faa931b1d9148377b2fcb316f2b7230fa70ba6f |
17946 | ·-·cd6a97f3037dcc3ca5a8df406bda239400f8ba996eac7cf26ca70be61beffc83 | 17946 | ·-·cd6a97f3037dcc3ca5a8df406bda239400f8ba996eac7cf26ca70be61beffc83 |
17947 | ·-·76d752a67fd703ffe350be4fe2037b7e29a78e5bfe7ade2f14e0d0459a9115dc | 17947 | ·-·76d752a67fd703ffe350be4fe2037b7e29a78e5bfe7ade2f14e0d0459a9115dc |
17948 | ·-·f87b5b0649cbfe34f874b8a3b101b6c79b6e350d95c5f122aa54414d795f847f | 17948 | ·-·f87b5b0649cbfe34f874b8a3b101b6c79b6e350d95c5f122aa54414d795f847f |
17949 | ·-·faf0a834191115e659726a0681f81555e3ffef13d025dd63434f81a764eee386 | 17949 | ·-·faf0a834191115e659726a0681f81555e3ffef13d025dd63434f81a764eee386 |
17950 | ·-·4cebdf5c65f8cea9bd59e38f2c6d845c80dc5fd1e339f1d15f2f57da5e9e7145 | 17950 | ·-·4cebdf5c65f8cea9bd59e38f2c6d845c80dc5fd1e339f1d15f2f57da5e9e7145 |
17951 | ·-· | 17951 | ·-· |
17952 | ·-·e | 17952 | ·-·d15e2edc8da5e66e843dda49c2eae2380dd0ffb8bb73832ff9ecfdc9750809ba |
17953 | ·-· | 17953 | ·-· |
17954 | ·-·f6a61b9c342763091b8f66c565bd729f2670bb898035d54d813fe78908e5deb3 | 17954 | ·-·f6a61b9c342763091b8f66c565bd729f2670bb898035d54d813fe78908e5deb3 |
17955 | ·-·9f2da9f35702d8ed70b71abd4fe5c4e99c8d65de09e377e8ae262e7bf7c2664a | 17955 | ·-·9f2da9f35702d8ed70b71abd4fe5c4e99c8d65de09e377e8ae262e7bf7c2664a |
17956 | ·-·902c77cb15e07885d05757bb3dba14434f5ab524e434ef30133f12b27268ba82 | 17956 | ·-·902c77cb15e07885d05757bb3dba14434f5ab524e434ef30133f12b27268ba82 |
17957 | ·-· | 17957 | ·-· |
17958 | ·-· | 17958 | ·-· |
17959 | ·-· | 17959 | ·-· |
Offset 50843, 11 lines modified | Offset 50843, 11 lines modified | ||
50843 | ·-·ASCII·text,·with·very·long·lines·(613) | 50843 | ·-·ASCII·text,·with·very·long·lines·(613) |
50844 | ·-·ASCII·text,·with·very·long·lines·(647) | 50844 | ·-·ASCII·text,·with·very·long·lines·(647) |
50845 | ·-·ASCII·text,·with·very·long·lines·(321) | 50845 | ·-·ASCII·text,·with·very·long·lines·(321) |
50846 | ·-·ASCII·text,·with·very·long·lines·(377) | 50846 | ·-·ASCII·text,·with·very·long·lines·(377) |
50847 | FILEDIGESTALGO:·8 | 50847 | FILEDIGESTALGO:·8 |
50848 | ENCODING:·utf-8 | 50848 | ENCODING:·utf-8 |
50849 | PAYLOADDIGEST:· | 50849 | PAYLOADDIGEST:· |
50850 | ·-· | 50850 | ·-·893567e7cf56ab24535868e7b5c69625b62d45d2c005b0e929e97224468d181f |
50851 | PAYLOADDIGESTALGO:·8 | 50851 | PAYLOADDIGESTALGO:·8 |
50852 | PAYLOADDIGESTALT:· | 50852 | PAYLOADDIGESTALT:· |
50853 | ·-· | 50853 | ·-·212095f72a1ce732b4ce5629e4650ee4681d894681c11aa82e855652b0cc66bb |
Offset 31, 15 lines modified | Offset 31, 15 lines modified | ||
31 | ··CONFIG["RUBY_SO_NAME"]·=·"$(RUBY_BASE_NAME)" | 31 | ··CONFIG["RUBY_SO_NAME"]·=·"$(RUBY_BASE_NAME)" |
32 | ··CONFIG["exec"]·=·"exec" | 32 | ··CONFIG["exec"]·=·"exec" |
33 | ··CONFIG["ruby_pc"]·=·"ruby-3.3.pc" | 33 | ··CONFIG["ruby_pc"]·=·"ruby-3.3.pc" |
34 | ··CONFIG["CC_WRAPPER"]·=·"" | 34 | ··CONFIG["CC_WRAPPER"]·=·"" |
35 | ··CONFIG["PACKAGE"]·=·"ruby" | 35 | ··CONFIG["PACKAGE"]·=·"ruby" |
36 | ··CONFIG["BUILTIN_TRANSSRCS"]·=·"·enc/trans/newline.c" | 36 | ··CONFIG["BUILTIN_TRANSSRCS"]·=·"·enc/trans/newline.c" |
37 | ··CONFIG["MKMF_VERBOSE"]·=·"0" | 37 | ··CONFIG["MKMF_VERBOSE"]·=·"0" |
38 | ··CONFIG["MANTYPE"]·=·" | 38 | ··CONFIG["MANTYPE"]·=·"man" |
39 | ··CONFIG["vendorarchhdrdir"]·=·"$(vendorhdrdir)/$(sitearch)" | 39 | ··CONFIG["vendorarchhdrdir"]·=·"$(vendorhdrdir)/$(sitearch)" |
40 | ··CONFIG["sitearchhdrdir"]·=·"$(sitehdrdir)/$(sitearch)" | 40 | ··CONFIG["sitearchhdrdir"]·=·"$(sitehdrdir)/$(sitearch)" |
41 | ··CONFIG["rubyarchhdrdir"]·=·"$(rubyhdrdir)/$(arch)" | 41 | ··CONFIG["rubyarchhdrdir"]·=·"$(rubyhdrdir)/$(arch)" |
42 | ··CONFIG["vendorhdrdir"]·=·"$(rubyhdrdir)/vendor_ruby" | 42 | ··CONFIG["vendorhdrdir"]·=·"$(rubyhdrdir)/vendor_ruby" |
43 | ··CONFIG["sitehdrdir"]·=·"$(rubyhdrdir)/site_ruby" | 43 | ··CONFIG["sitehdrdir"]·=·"$(rubyhdrdir)/site_ruby" |
44 | ··CONFIG["rubyhdrdir"]·=·"$(includedir)/$(RUBY_VERSION_NAME)" | 44 | ··CONFIG["rubyhdrdir"]·=·"$(includedir)/$(RUBY_VERSION_NAME)" |
45 | ··CONFIG["RUBY_SEARCH_PATH"]·=·"" | 45 | ··CONFIG["RUBY_SEARCH_PATH"]·=·"" |
Offset 18, 74 lines modified | Offset 18, 74 lines modified | ||
18 | 06ac000000014300727562792d646f6300332e332e3400723000416e20696e746572707265746572206f66206f626a656374 | 18 | 06ac000000014300727562792d646f6300332e332e3400723000416e20696e746572707265746572206f66206f626a656374 |
19 | 2d6f7269656e74656420736372697074696e67206c616e6775616765202d20446f63756d656e746174696f6e2066696c6573 | 19 | 2d6f7269656e74656420736372697074696e67206c616e6775616765202d20446f63756d656e746174696f6e2066696c6573 |
20 | 005275627920697320616e20696e74657270726574656420736372697074696e67206c616e677561676520666f7220717569 | 20 | 005275627920697320616e20696e74657270726574656420736372697074696e67206c616e677561676520666f7220717569 |
21 | 636b20616e642065617379206f626a6563742d0a6f7269656e7465642070726f6772616d6d696e672e20497420686173206d | 21 | 636b20616e642065617379206f626a6563742d0a6f7269656e7465642070726f6772616d6d696e672e20497420686173206d |
22 | 616e7920666561747572657320746f2070726f6365737320746578742066696c657320616e6420746f20646f0a7379737465 | 22 | 616e7920666561747572657320746f2070726f6365737320746578742066696c657320616e6420746f20646f0a7379737465 |
23 | 6d206d616e6167656d656e74207461736b732028617320696e205065726c292e2049742069732073696d706c652c20737472 | 23 | 6d206d616e6167656d656e74207461736b732028617320696e205065726c292e2049742069732073696d706c652c20737472 |
24 | 61696768742d666f72776172642c20616e640a657874656e7369626c652e20202054686973207061636b61676520636f6e74 | 24 | 61696768742d666f72776172642c20616e640a657874656e7369626c652e20202054686973207061636b61676520636f6e74 |
25 | 61696e7320646f63756d656e746174696f6e2e00668c7618726570726f64756369626c650000000000008 | 25 | 61696e7320646f63756d656e746174696f6e2e00668c7618726570726f64756369626c65000000000000833752756279207c |
26 | 204253442d322d436c61757365207c204253442d332d436c61757365207c2047504c2d322e302d6f6e6c79207c2049534320 | 26 | 204253442d322d436c61757365207c204253442d332d436c61757365207c2047504c2d322e302d6f6e6c79207c2049534320 |
27 | 7c204d495400506f6b79204d61696e7461696e657273203c706f6b79406c697374732e796f63746f70726f6a6563742e6f72 | 27 | 7c204d495400506f6b79204d61696e7461696e657273203c706f6b79406c697374732e796f63746f70726f6a6563742e6f72 |
28 | 673e00646f6300687474703a2f2f7777772e727562792d6c616e672e6f72672f006c696e757800636f7265325f3634000000 | 28 | 673e00646f6300687474703a2f2f7777772e727562792d6c616e672e6f72672f006c696e757800636f7265325f3634000000 |
29 | 0000000000000000000000000000000000000c | 29 | 0000000000000000000000000000000000000c590000134b0000132f0000506441ed41ed41ed41ed81a481a481a481a40000 |
30 | 0000000000000000000000000000668c7618668c7618668c7618668c7618668c761 | 30 | 0000000000000000000000000000668c7618668c7618668c7618668c7618668c7618668c7618668c7618668c761800000000 |
31 | 3061313637653735656134363535303362313664623730643033346536616264653035613966306362623036663535343661 | ||
32 | 6566376461303165666137383231006366653233653931396630306535386235656531343661653261373436353632333663 | ||
33 | 6530643637643565346638333135313938336664366338656136373639003039393937353032333931383930376436633930 | ||
34 | 3832626461643237666633623763303364643739366664363565653835333935633964663937313034353031003161656566 | ||
35 | 3 | 31 | 3136666535643434313863316138313733326263383933653037343234666263313631356338363163613265313430333566 |
32 | 3630353836343264663665663962006339396235393663653961353431663661333861396366633436666636616235323464 | ||
33 | 6138386635306437393136393930663765343337323538343262646338003136336136326665316235303536613539393438 | ||
34 | 6533343238323437333265623931613265323630333530306439313866366630613138336666646238613531006532666131 | ||
35 | 6630303364363765393530376132653861346138346465646138666166313338333231656535353837336535636234336161 | ||
36 | 3 | 36 | 3938646538393332370000000000000000000000000000000000000000000000000000000000000000000000000000000000 |
37 | 726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400 | 37 | 726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400 |
38 | 726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400727562792d332e332e342d72302e7372632e7270 | 38 | 726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400726f6f7400727562792d332e332e342d72302e7372632e7270 |
39 | 6d000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff727562792d646f63000000000100 | 39 | 6d000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff727562792d646f63000000000100 |
40 | 000a0100000a0100000a0100000a72706d6c696228436f6d7072657373656446696c654e616d6573290072706d6c69622846 | 40 | 000a0100000a0100000a0100000a72706d6c696228436f6d7072657373656446696c654e616d6573290072706d6c69622846 |
41 | 696c6544696765737473290072706d6c6962285061796c6f616446696c657348617665507265666978290072706d6c696228 | 41 | 696c6544696765737473290072706d6c6962285061796c6f616446696c657348617665507265666978290072706d6c696228 |
42 | 5061796c6f616449735a7374642900332e302e342d3100342e362e302d3100342e302d3100352e342e31382d3100342e3139 | 42 | 5061796c6f616449735a7374642900332e302e342d3100342e362e302d3100342e302d3100352e342e31382d3100342e3139 |
43 | 2e312e3100000000000000010000000100000001000000010000000100000001000000010000000100000001000000020000 | 43 | 2e312e3100000000000000010000000100000001000000010000000100000001000000010000000100000001000000020000 |
44 | 00030000000400000005000000060000000700000008000000000000000000000008332e332e342d72300000000000000000 | 44 | 00030000000400000005000000060000000700000008000000000000000000000008332e332e342d72300000000000000000 |
45 | 00000001000000020000000300000004000000040000000400000004757372007368617265006d616e006d616e3100657262 | 45 | 00000001000000020000000300000004000000040000000400000004757372007368617265006d616e006d616e3100657262 |
46 | 2e31006972622e310072692e3100727562792e31002f002f7573722f002f7573722f73686172652f002f7573722f73686172 | 46 | 2e31006972622e310072692e3100727562792e31002f002f7573722f002f7573722f73686172652f002f7573722f73686172 |
47 | 652f6d616e2f002f7573722f73686172652f6d616e2f6d616e312f002d4f32202d67006370696f007a7374640000257b5f74 | 47 | 652f6d616e2f002f7573722f73686172652f6d616e2f6d616e312f002d4f32202d67006370696f007a7374640000257b5f74 |
48 | 61726765745f706c6174666f726d7d0000000000000000000000000000000000000000000000000000000000000000000000 | 48 | 61726765745f706c6174666f726d7d0000000000000000000000000000000000000000000000000000000000000000000000 |
49 | 00000000000000000000000000000000000000010000000100000001000000016469726563746f72790074726f6666206f72 | 49 | 00000000000000000000000000000000000000010000000100000001000000016469726563746f72790074726f6666206f72 |
50 | 2070726570726f636573736f7220696e7075742c2041534349492074657874000000000000087574662d3800363 | 50 | 2070726570726f636573736f7220696e7075742c2041534349492074657874000000000000087574662d3800336363663266 |
51 | 6661623836623130323333643830666335353365623664643233666362346561326666343630346138653435663165326437 | ||
52 | 3662393633303238000000000008656239666436623634326661323561636539386233333831323539383236633032623338 | ||
53 | 6 | 51 | 6230313534626339626361393634663564653133316331653638363461326439353932643534343830643263653465306332 |
52 | 3464313664653931000000000008613962353339353330666239663666396562333365396236383532373530653765666234 | ||
53 | 66666631636132323561616234333031366233313538366366343832000000003f00000007fffffcb000000010 | ||
54 | HEADERI18NTABLE:· | 54 | HEADERI18NTABLE:· |
55 | ·-·C | 55 | ·-·C |
56 | SIGSIZE:·13 | 56 | SIGSIZE:·13173 |
57 | SIGMD5:·fcb6d7aa0c9f9ad0e672df1b56ef9fd7 | ||
58 | SHA1HEADER:·9d444b66f0ccd3a14171e60a66245bf5ff169146 | ||
59 | S | 57 | SIGMD5:·f7ebb753ebb03db774b9911660b42c19 |
58 | SHA1HEADER:·8396713c47fb04cb14faf0828b26cf2962513377 | ||
59 | SHA256HEADER:·4bcd19daf20b4e8e0bcb77ad7dea2d2b7b5b125ab3e984c2c2cb180b77f5b12c | ||
60 | NAME:·ruby-doc | 60 | NAME:·ruby-doc |
61 | VERSION:·3.3.4 | 61 | VERSION:·3.3.4 |
62 | RELEASE:·r0 | 62 | RELEASE:·r0 |
63 | SUMMARY:·An·interpreter·of·object-oriented·scripting·language·-·Documentation·files | 63 | SUMMARY:·An·interpreter·of·object-oriented·scripting·language·-·Documentation·files |
64 | DESCRIPTION:·Ruby·is·an·interpreted·scripting·language·for·quick·and·easy·object-·oriented·programming.·It·has | 64 | DESCRIPTION:·Ruby·is·an·interpreted·scripting·language·for·quick·and·easy·object-·oriented·programming.·It·has |
65 | many·features·to·process·text·files·and·to·do·system·management·tasks·(as·in·Perl).·It·is·simple, | 65 | many·features·to·process·text·files·and·to·do·system·management·tasks·(as·in·Perl).·It·is·simple, |
66 | straight-forward,·and·extensible.···This·package·contains·documentation. | 66 | straight-forward,·and·extensible.···This·package·contains·documentation. |
67 | BUILDTIME:·1720481304 | 67 | BUILDTIME:·1720481304 |
68 | BUILDHOST:·reproducible | 68 | BUILDHOST:·reproducible |
69 | SIZE:·3 | 69 | SIZE:·33591 |
70 | LICENSE:·Ruby·|·BSD-2-Clause·|·BSD-3-Clause·|·GPL-2.0-only·|·ISC·|·MIT | 70 | LICENSE:·Ruby·|·BSD-2-Clause·|·BSD-3-Clause·|·GPL-2.0-only·|·ISC·|·MIT |
71 | PACKAGER:·Poky·Maintainers·<poky@lists.yoctoproject.org> | 71 | PACKAGER:·Poky·Maintainers·<poky@lists.yoctoproject.org> |
72 | GROUP:·doc | 72 | GROUP:·doc |
73 | URL:·http://www.ruby-lang.org/ | 73 | URL:·http://www.ruby-lang.org/ |
74 | OS:·linux | 74 | OS:·linux |
75 | ARCH:·core2_64 | 75 | ARCH:·core2_64 |
76 | FILESIZES:· | 76 | FILESIZES:· |
77 | ·-·0 | 77 | ·-·0 |
78 | ·-·0 | 78 | ·-·0 |
79 | ·-·0 | 79 | ·-·0 |
80 | ·-·0 | 80 | ·-·0 |
81 | ·-·3326 | ||
82 | ·-·4942 | ||
83 | ·-·5347 | ||
84 | ·-· | 81 | ·-·3161 |
82 | ·-·4939 | ||
83 | ·-·4911 | ||
84 | ·-·20580 | ||
85 | FILEMODES:· | 85 | FILEMODES:· |
86 | ·-·16877 | 86 | ·-·16877 |
87 | ·-·16877 | 87 | ·-·16877 |
88 | ·-·16877 | 88 | ·-·16877 |
89 | ·-·16877 | 89 | ·-·16877 |
90 | ·-·33188 | 90 | ·-·33188 |
91 | ·-·33188 | 91 | ·-·33188 |
Offset 101, 27 lines modified | Offset 101, 27 lines modified | ||
101 | ·-·0 | 101 | ·-·0 |
102 | ·-·0 | 102 | ·-·0 |
103 | FILEMTIMES:· | 103 | FILEMTIMES:· |
104 | ·-·1720481304 | 104 | ·-·1720481304 |
105 | ·-·1720481304 | 105 | ·-·1720481304 |
106 | ·-·1720481304 | 106 | ·-·1720481304 |
107 | ·-·1720481304 | 107 | ·-·1720481304 |
108 | ·-·172048130 | 108 | ·-·1720481304 |
109 | ·-·172048130 | 109 | ·-·1720481304 |
110 | ·-·172048130 | 110 | ·-·1720481304 |
111 | ·-·172048130 | 111 | ·-·1720481304 |
112 | FILEMD5S:· | 112 | FILEMD5S:· |
113 | ·-· | 113 | ·-· |
114 | ·-· | 114 | ·-· |
115 | ·-· | 115 | ·-· |
116 | ·-· | 116 | ·-· |
117 | ·-·0a167e75ea465503b16db70d034e6abde05a9f0cbb06f5546aef7da01efa7821 | ||
118 | ·-·cfe23e919f00e58b5ee146ae2a74656236ce0d67d5e4f83151983fd6c8ea6769 | ||
119 | ·-·099975023918907d6c9082bdad27ff3b7c03dd796fd65ee85395c9df97104501 | ||
120 | ·-·1 | 117 | ·-·16fe5d4418c1a81732bc893e07424fbc1615c861ca2e14035f6058642df6ef9b |
118 | ·-·c99b596ce9a541f6a38a9cfc46ff6ab524da88f50d7916990f7e43725842bdc8 | ||
119 | ·-·163a62fe1b5056a59948e342824732eb91a2e2603500d918f6f0a183ffdb8a51 | ||
120 | ·-·e2fa1f003d67e9507a2e8a4a84deda8faf138321ee55873e5cb43aa98de89327 | ||
121 | FILELINKTOS:· | 121 | FILELINKTOS:· |
122 | ·-· | 122 | ·-· |
123 | ·-· | 123 | ·-· |
124 | ·-· | 124 | ·-· |
125 | ·-· | 125 | ·-· |
126 | ·-· | 126 | ·-· |
127 | ·-· | 127 | ·-· |
Offset 160, 15 lines modified | Offset 160, 15 lines modified | ||
160 | ·-·4294967295 | 160 | ·-·4294967295 |
161 | ·-·4294967295 | 161 | ·-·4294967295 |
162 | ·-·4294967295 | 162 | ·-·4294967295 |
163 | ·-·4294967295 | 163 | ·-·4294967295 |
164 | ·-·4294967295 | 164 | ·-·4294967295 |
165 | ·-·4294967295 | 165 | ·-·4294967295 |
166 | ·-·4294967295 | 166 | ·-·4294967295 |
167 | ARCHIVESIZE:·3 | 167 | ARCHIVESIZE:·34776 |
168 | PROVIDES:· | 168 | PROVIDES:· |
169 | ·-·ruby-doc | 169 | ·-·ruby-doc |
... Open expanded diff ... |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr | 1 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr |
2 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr/share | 2 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr/share |
3 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr/share/man | 3 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr/share/man |
4 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr/share/man/man1 | 4 | drwxr-xr-x···1········0········0········0·2024-07-08·23:28:24.000000·./usr/share/man/man1 |
5 | -rw-r--r--···1········0········0·····3 | 5 | -rw-r--r--···1········0········0·····3161·2024-07-08·23:28:24.000000·./usr/share/man/man1/erb.1 |
6 | -rw-r--r--···1········0········0·····49 | 6 | -rw-r--r--···1········0········0·····4939·2024-07-08·23:28:24.000000·./usr/share/man/man1/irb.1 |
7 | -rw-r--r--···1········0········0····· | 7 | -rw-r--r--···1········0········0·····4911·2024-07-08·23:28:24.000000·./usr/share/man/man1/ri.1 |
8 | -rw-r--r--···1········0········0····2 | 8 | -rw-r--r--···1········0········0····20580·2024-07-08·23:28:24.000000·./usr/share/man/man1/ruby.1 |
Offset 1, 160 lines modified | Offset 1, 184 lines modified | ||
1 | .TH·ERB·\&1·"Ruby·Programmer's·Reference·Guide"·"December·16,·2018"·"UNIX" | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·December·16,·2018 | ||
3 | .Dt·ERB·\&1·"Ruby·Programmer's·Reference·Guide" | ||
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBerb\fP | |
7 | 4 | \-·Ruby·Templating | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-version | ||
11 | .Op·Fl·UPdnvx | ||
12 | .Op·Fl·E·Ar·ext·Ns·Op·Ns·:·Ns·int | ||
13 | .Op·Fl·S·Ar·level | ||
14 | .Op·Fl·T·Ar·mode | ||
15 | .Op·Fl·r·Ar·library | ||
16 | .Op·Fl·- | ||
17 | .Op·file·... | ||
18 | . | 6 | .br |
7 | \fBerb\fP | ||
8 | [\fB\--version\fP] | ||
9 | [\fB\-UPdnvx\fP] | ||
10 | [\fB\-E\fP·\fIext\fP[:int]] | ||
11 | [\fB\-S\fP·\fIlevel\fP] | ||
12 | [\fB\-T\fP·\fImode\fP] | ||
13 | [\fB\-r\fP·\fIlibrary\fP] | ||
14 | [\fB\--\fP] | ||
15 | [file·...] | ||
19 | .S | 16 | .SH·DESCRIPTION |
20 | 17 | \fBerb\fP | |
21 | is·a·command·line·front-end·for | 18 | is·a·command·line·front-end·for |
22 | 19 | "ERB" | |
23 | library,·which·is·an·implementation·of·eRuby. | 20 | library,·which·is·an·implementation·of·eRuby. |
24 | .Pp | ||
25 | ERB·provides·an·easy·to·use·but·powerful·templating·system·for·Ruby. | 21 | ERB·provides·an·easy·to·use·but·powerful·templating·system·for·Ruby. |
26 | Using·ERB,·actual·Ruby·code·can·be·added·to·any·plain·text·document·for·the | 22 | Using·ERB,·actual·Ruby·code·can·be·added·to·any·plain·text·document·for·the |
27 | purposes·of·generating·document·information·details·and/or·flow·control. | 23 | purposes·of·generating·document·information·details·and/or·flow·control. |
28 | .Pp | ||
29 | .Nm | ||
24 | \fBerb\fP | ||
30 | is·a·part·of | 25 | is·a·part·of |
31 | .Nm·Ruby·. | ||
32 | 26 | \fBRuby\fP. | |
33 | .S | 27 | .SH·OPTIONS |
34 | .Bl·-tag·-width·"1234567890123"·-compact | ||
35 | .Pp | ||
36 | .It·Fl·-version | ||
28 | .TP | ||
29 | \fB\--version\fP | ||
37 | Prints·the·version·of | 30 | Prints·the·version·of |
38 | .Nm·. | ||
39 | .Pp | ||
40 | .It·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
41 | 31 | \fB.\fP | |
32 | .TP | ||
33 | \fB\-E\fP·\fIexternal\fP[:\fIinternal\fP] | ||
34 | .TP | ||
35 | \fB\--encoding\fP·\fIexternal\fP[:\fIinternal\fP] | ||
42 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). | 36 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). |
43 | .Pp | ||
44 | You·can·omit·the·one·for·internal·encodings,·then·the·value | 37 | You·can·omit·the·one·for·internal·encodings,·then·the·value |
45 | 38 | ("Encoding.default_internal")·will·be·nil. | |
46 | .Pp | ||
47 | .It·Fl·P | ||
39 | .TP | ||
40 | \fB\-P\fP | ||
48 | Disables·ruby·code·evaluation·for·lines·beginning·with | 41 | Disables·ruby·code·evaluation·for·lines·beginning·with |
49 | .Li·"%"·. | ||
50 | .Pp | ||
51 | 42 | "%". | |
43 | .TP | ||
44 | \fB\-S\fP·\fIlevel\fP | ||
52 | Specifies·the·safe·level·in·which·eRuby·script·will·run. | 45 | Specifies·the·safe·level·in·which·eRuby·script·will·run. |
53 | .Pp | ||
54 | .It·Fl·T·Ar·mode | ||
46 | .TP | ||
47 | \fB\-T\fP·\fImode\fP | ||
55 | Specifies·trim·mode·(default·0). | 48 | Specifies·trim·mode·(default·0). |
56 | 49 | \fImode\fP | |
57 | can·be·one·of | 50 | can·be·one·of |
58 | .Bl·-hang·-offset·indent | ||
59 | . | 51 | .TP |
52 | .B·0 | ||
60 | EOL·remains·after·the·embedded·ruby·script·is·evaluated. | 53 | EOL·remains·after·the·embedded·ruby·script·is·evaluated. |
61 | .Pp | ||
62 | .It·Sy·1 | ||
54 | .TP | ||
55 | .B·1 | ||
63 | EOL·is·removed·if·the·line·ends·with | 56 | EOL·is·removed·if·the·line·ends·with |
64 | .Li·"%>"·. | ||
65 | .Pp | ||
66 | 57 | "%>". | |
58 | .TP | ||
59 | .B·2 | ||
67 | EOL·is·removed·if·the·line·starts·with | 60 | EOL·is·removed·if·the·line·starts·with |
68 | 61 | "<%" | |
69 | and·ends·with | 62 | and·ends·with |
70 | .Li·"%>"·. | ||
71 | .Pp | ||
72 | 63 | "%>". | |
64 | .TP | ||
65 | .B·- | ||
73 | EOL·is·removed·if·the·line·ends·with | 66 | EOL·is·removed·if·the·line·ends·with |
74 | 67 | "-%>". | |
75 | And·leading·whitespaces·are·removed·if·the·erb·directive·starts·with | 68 | And·leading·whitespaces·are·removed·if·the·erb·directive·starts·with |
76 | .Li·"<%-"·. | ||
77 | .Pp | ||
78 | .El | ||
79 | 69 | "<%-". | |
70 | .TP | ||
71 | \fB\-r\fP | ||
80 | Load·a·library | 72 | Load·a·library |
81 | .Pp | ||
82 | .It·Fl·U | ||
73 | .TP | ||
74 | \fB\-U\fP | ||
83 | can·be·one·of | 75 | can·be·one·of |
84 | Sets·the·default·value·for·internal·encodings | 76 | Sets·the·default·value·for·internal·encodings |
85 | 77 | ("Encoding.default_internal")·to·UTF-8. | |
86 | .Pp | ||
... Open expanded diff ... |
Offset 1, 257 lines modified | Offset 1, 322 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·August·11,·2019 | ||
3 | . | 1 | .TH·IRB·\&1·"Ruby·Programmer's·Reference·Guide"·"August·11,·2019"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBirb\fP | |
7 | 4 | \-·Interactive·Ruby·Shell | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-version | ||
11 | .Op·Fl·dfUw | ||
12 | .Op·Fl·I·Ar·directory | ||
13 | .Op·Fl·r·Ar·library | ||
14 | .Op·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
15 | .Op·Fl·W·Ns·Op·Ar·level | ||
16 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·inspect | ||
17 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·multiline | ||
18 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·singleline | ||
19 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·echo | ||
20 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·colorize | ||
21 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·autocomplete | ||
22 | .Op·Fl·-·Ns·Oo·no·Oc·Ns·verbose | ||
23 | .Op·Fl·-prompt·Ar·mode | ||
24 | .Op·Fl·-prompt-mode·Ar·mode | ||
25 | .Op·Fl·-inf-ruby-mode | ||
26 | .Op·Fl·-simple-prompt | ||
27 | .Op·Fl·-noprompt | ||
28 | .Op·Fl·-tracer | ||
29 | .Op·Fl·-back-trace-limit·Ar·n | ||
30 | . | 6 | .br |
7 | \fBirb\fP | ||
8 | [\fB\--version\fP] | ||
9 | [\fB\-dfUw\fP] | ||
10 | [\fB\-I\fP·\fIdirectory\fP] | ||
11 | [\fB\-r\fP·\fIlibrary\fP] | ||
12 | [\fB\-E\fP·\fIexternal\fP[:\fIinternal\fP]] | ||
13 | [\fB\-W\fP[\fIlevel\fP]] | ||
14 | [\fB\--\fP[no]inspect] | ||
15 | [\fB\--\fP[no]multiline] | ||
16 | [\fB\--\fP[no]singleline] | ||
17 | [\fB\--\fP[no]echo] | ||
18 | [\fB\--\fP[no]colorize] | ||
19 | [\fB\--\fP[no]autocomplete] | ||
20 | [\fB\--\fP[no]verbose] | ||
21 | [\fB\--prompt\fP·\fImode\fP] | ||
22 | [\fB\--prompt-mode\fP·\fImode\fP] | ||
23 | [\fB\--inf-ruby-mode\fP] | ||
24 | [\fB\--simple-prompt\fP] | ||
25 | [\fB\--noprompt\fP] | ||
26 | [\fB\--tracer\fP] | ||
27 | [\fB\--back-trace-limit\fP·\fIn\fP] | ||
28 | [\fB\--\fP] | ||
31 | 29 | [program_file] | |
32 | 30 | [argument·...] | |
33 | .Pp | ||
34 | .S | 31 | .SH·DESCRIPTION |
35 | 32 | \fBirb\fP | |
36 | is·the·REPL(read-eval-print·loop)·environment·for·Ruby·programs. | 33 | is·the·REPL(read-eval-print·loop)·environment·for·Ruby·programs. |
37 | .Pp | ||
38 | .S | 34 | .SH·OPTIONS |
39 | .Bl·-tag·-width·"1234567890123"·-compact | ||
40 | .Pp | ||
41 | .It·Fl·-version | ||
35 | .TP | ||
36 | \fB\--version\fP | ||
42 | Prints·the·version·of | 37 | Prints·the·version·of |
43 | .Nm·. | ||
44 | .Pp | ||
45 | .It·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
46 | 38 | \fB.\fP | |
39 | .TP | ||
40 | \fB\-E\fP·\fIexternal\fP[:\fIinternal\fP] | ||
41 | .TP | ||
42 | \fB\--encoding\fP·\fIexternal\fP[:\fIinternal\fP] | ||
47 | Same·as·`ruby·-E'·. | 43 | Same·as·`ruby·-E'·. |
48 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). | 44 | Specifies·the·default·value(s)·for·external·encodings·and·internal·encoding.·Values·should·be·separated·with·colon·(:). |
49 | .Pp | ||
50 | You·can·omit·the·one·for·internal·encodings,·then·the·value | 45 | You·can·omit·the·one·for·internal·encodings,·then·the·value |
51 | 46 | ("Encoding.default_internal")·will·be·nil. | |
52 | .Pp | ||
53 | .It·Fl·I·Ar·path | ||
47 | .TP | ||
48 | \fB\-I\fP·\fIpath\fP | ||
54 | Same·as·`ruby·-I'·. | 49 | Same·as·`ruby·-I'·. |
55 | Specifies | 50 | Specifies |
56 | 51 | $LOAD_PATH | |
57 | directory | 52 | directory |
58 | .Pp | ||
59 | .It·Fl·U | ||
53 | .TP | ||
54 | \fB\-U\fP | ||
60 | Same·as·`ruby·-U'·. | 55 | Same·as·`ruby·-U'·. |
61 | Sets·the·default·value·for·internal·encodings | 56 | Sets·the·default·value·for·internal·encodings |
62 | 57 | ("Encoding.default_internal")·to·UTF-8. | |
63 | .Pp | ||
64 | .It·Fl·d | ||
58 | .TP | ||
59 | \fB\-d\fP | ||
65 | Same·as·`ruby·-d'·. | 60 | Same·as·`ruby·-d'·. |
66 | Sets | 61 | Sets |
67 | 62 | $DEBUG | |
68 | to·true. | 63 | to·true. |
69 | .Pp | ||
70 | .It·Fl·f | ||
64 | .TP | ||
65 | \fB\-f\fP | ||
71 | Suppresses·read·of | 66 | Suppresses·read·of |
72 | .Pa·~/.irbrc·. | ||
73 | .Pp | ||
74 | . | 67 | \fI~/.irbrc\fP. |
68 | .TP | ||
69 | \fB\-w\fP | ||
75 | Same·as·`ruby·-w'·. | 70 | Same·as·`ruby·-w'·. |
76 | .Pp | ||
77 | .Pp | ||
78 | .It·Fl·W | ||
71 | .TP | ||
72 | \fB\-W\fP | ||
79 | Same·as·`ruby·-W'·. | 73 | Same·as·`ruby·-W'·. |
80 | .Pp | ||
81 | .It·Fl·h | ||
82 | .It·Fl·-help | ||
74 | .TP | ||
75 | \fB\-h\fP | ||
... Open expanded diff ... |
Offset 1, 247 lines modified | Offset 1, 270 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·April·20,·2017 | ||
3 | . | 1 | .TH·RI·\&1·"Ruby·Programmer's·Reference·Guide"·"April·20,·2017"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBri\fP | |
7 | 4 | \-·Ruby·API·reference·front·end | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·ahilTv | ||
11 | .Op·Fl·d·Ar·DIRNAME | ||
12 | .Op·Fl·f·Ar·FORMAT | ||
13 | .Op·Fl·w·Ar·WIDTH | ||
14 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·pager | ||
15 | .Op·Fl·-server·Ns·Oo·=·Ns·Ar·PORT·Oc | ||
16 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·list-doc-dirs | ||
17 | .Op·Fl·-no-standard-docs | ||
18 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Bro·Cm·system·Ns·|·Ns·Cm·site·Ns·|·Ns·Cm·gems·Ns·|·Ns·Cm·home·Brc | ||
19 | .Op·Fl·-·Ns·Oo·Cm·no-·Oc·Ns·Cm·profile | ||
20 | .Op·Fl·-dump·Ns·=·Ns·Ar·CACHE | ||
21 | . | 6 | .br |
7 | \fBri\fP | ||
8 | [\fB\-ahilTv\fP] | ||
9 | [\fB\-d\fP·\fIDIRNAME\fP] | ||
10 | [\fB\-f\fP·\fIFORMAT\fP] | ||
11 | [\fB\-w\fP·\fIWIDTH\fP] | ||
12 | [\fB\--\fP[\fBno-\fP]\fBpager\fP] | ||
13 | [\fB\--server\fP[=\fIPORT\fP]] | ||
14 | [\fB\--\fP[\fBno-\fP]\fBlist-doc-dirs\fP] | ||
15 | [\fB\--no-standard-docs\fP] | ||
16 | [\fB\--\fP[\fBno-\fP]{\fBsystem\fP|\fBsite\fP|\fBgems\fP|\fBhome\fP}] | ||
17 | [\fB\--\fP[\fBno-\fP]\fBprofile\fP] | ||
18 | [\fB\--dump\fP=\fICACHE\fP] | ||
19 | [\fIname\fP·...] | ||
22 | .S | 20 | .SH·DESCRIPTION |
23 | 21 | \fBri\fP | |
24 | is·a·command-line·front·end·for·the·Ruby·API·reference. | 22 | is·a·command-line·front·end·for·the·Ruby·API·reference. |
25 | You·can·search·and·read·the·API·reference·for·classes·and·methods·with | 23 | You·can·search·and·read·the·API·reference·for·classes·and·methods·with |
26 | .Nm·. | ||
27 | .Pp | ||
28 | . | 24 | \fB.\fP |
25 | \fBri\fP | ||
29 | is·a·part·of·Ruby. | 26 | is·a·part·of·Ruby. |
30 | .Pp | ||
31 | .Ar·name | ||
27 | \fIname\fP | ||
32 | can·be: | 28 | can·be: |
33 | .Bl·-diag·-offset·indent | ||
34 | 29 | It·Class·|·Module·|·Module::Class | |
35 | .Pp | ||
36 | 30 | It·Class::method·|·Class#method·|·Class.method·|·method | |
37 | .Pp | ||
38 | 31 | It·gem_name:·|·gem_name:README·|·gem_name:History | |
39 | .El | ||
40 | .Pp | ||
41 | All·class·names·may·be·abbreviated·to·their·minimum·unambiguous·form. | 32 | All·class·names·may·be·abbreviated·to·their·minimum·unambiguous·form. |
42 | If·a·name·is·ambiguous,·all·valid·options·will·be·listed. | 33 | If·a·name·is·ambiguous,·all·valid·options·will·be·listed. |
43 | .Pp | ||
44 | A | 34 | A |
45 | 35 | `\&.' | |
46 | matches·either·class·or·instance·methods,·while·#method | 36 | matches·either·class·or·instance·methods,·while·#method |
47 | matches·only·instance·and·::method·matches·only·class·methods. | 37 | matches·only·instance·and·::method·matches·only·class·methods. |
48 | .Pp | ||
49 | README·and·other·files·may·be·displayed·by·prefixing·them·with·the·gem·name | 38 | README·and·other·files·may·be·displayed·by·prefixing·them·with·the·gem·name |
50 | they're·contained·in.··If·the·gem·name·is·followed·by·a | 39 | they're·contained·in.··If·the·gem·name·is·followed·by·a |
51 | 40 | `\&:' | |
52 | all·files·in·the·gem·will·be·shown. | 41 | all·files·in·the·gem·will·be·shown. |
53 | The·file·name·extension·may·be·omitted·where·it·is·unambiguous. | 42 | The·file·name·extension·may·be·omitted·where·it·is·unambiguous. |
54 | .Pp | ||
55 | For·example: | 43 | For·example: |
56 | .Bd·-literal·-offset·indent | ||
57 | ri·Fil | 44 | ri·Fil |
45 | .br | ||
58 | ri·File | 46 | ri·File |
47 | .br | ||
59 | ri·File.new | 48 | ri·File.new |
49 | .br | ||
60 | ri·zip | 50 | ri·zip |
51 | .br | ||
61 | ri·rdoc:README | 52 | ri·rdoc:README |
62 | .Ed | ||
63 | . | 53 | .br |
64 | Note·that·shell·quoting·or·escaping·may·be·required·for·method·names | 54 | Note·that·shell·quoting·or·escaping·may·be·required·for·method·names |
65 | containing·punctuation: | 55 | containing·punctuation: |
66 | .Bd·-literal·-offset·indent | ||
67 | ri·'Array.[]' | 56 | ri·'Array.[]' |
57 | .br | ||
68 | ri·compact\e! | 58 | ri·compact\e! |
69 | .Ed | ||
70 | . | 59 | .br |
71 | To·see·the·default·directories | 60 | To·see·the·default·directories |
72 | 61 | \fBri\fP | |
73 | will·search,·run: | 62 | will·search,·run: |
74 | .Bd·-literal·-offset·indent | ||
75 | ri·--list-doc-dirs | 63 | ri·--list-doc-dirs |
76 | .Ed | ||
77 | . | 64 | .br |
78 | Specifying·the | 65 | Specifying·the |
79 | 66 | \fB\--system\fP,\fB\--site\fP,\fB\--home\fP,\fB\--gems\fP, | |
80 | or | 67 | or |
81 | 68 | \fB\--doc-dir\fP | |
82 | options·will·limit | 69 | options·will·limit |
83 | 70 | \fBri\fP | |
84 | to·searching·only·the·specified·directories. | 71 | to·searching·only·the·specified·directories. |
85 | .Pp | ||
86 | .Nm | ||
72 | \fBri\fP | ||
87 | options·may·be·set·in·the | 73 | options·may·be·set·in·the |
88 | . | 74 | .IR·RI |
89 | environment·variable. | 75 | environment·variable. |
90 | .Pp | ||
91 | The | 76 | The |
92 | 77 | \fBri\fP | |
93 | pager·can·be·set·with·the | 78 | pager·can·be·set·with·the |
94 | . | 79 | .IR·RI_PAGER |
95 | environment·variable·or·the | 80 | environment·variable·or·the |
96 | . | 81 | .IR·PAGER |
97 | environment·variable. | 82 | environment·variable. |
98 | .Pp | ||
99 | .S | 83 | .SH·OPTIONS |
100 | .Bl·-tag·-width·"1234567890123"·-compact | ||
101 | .Pp | ||
... Open expanded diff ... |
Offset 1, 738 lines modified | Offset 1, 840 lines modified | ||
1 | .\"Ruby·is·copyrighted·by·Yukihiro·Matsumoto·<matz@netlab.jp>. | ||
2 | .Dd·April·14,·2018 | ||
3 | . | 1 | .TH·RUBY·\&1·"Ruby·Programmer's·Reference·Guide"·"April·14,·2018"·"UNIX" |
4 | .Os·UNIX | ||
5 | .S | 2 | .SH·NAME |
6 | 3 | \fBruby\fP | |
7 | 4 | \-·Interpreted·object-oriented·scripting·language | |
8 | .S | 5 | .SH·SYNOPSIS |
9 | .Nm | ||
10 | .Op·Fl·-copyright | ||
11 | .Op·Fl·-version | ||
12 | .Op·Fl·SUacdlnpswvy | ||
13 | .Op·Fl·0·Ns·Op·Ar·octal | ||
14 | .Op·Fl·C·Ar·directory | ||
15 | .Op·Fl·E·Ar·external·Ns·Op·:·Ns·Ar·internal | ||
16 | .Op·Fl·F·Ns·Op·Ar·pattern | ||
17 | .Op·Fl·I·Ar·directory | ||
18 | .Op·Fl·K·Ns·Op·Ar·c | ||
19 | .Op·Fl·T·Ns·Op·Ar·level | ||
20 | .Op·Fl·W·Ns·Op·Ar·level | ||
21 | .Op·Fl·e·Ar·command | ||
22 | .Op·Fl·i·Ns·Op·Ar·extension | ||
23 | .Op·Fl·r·Ar·library | ||
24 | .Op·Fl·x·Ns·Op·Ar·directory | ||
25 | .Op·Fl·-·Ns·Bro·Cm·enable·Ns·|·Ns·Cm·disable·Brc·Ns·-·Ns·Ar·FEATURE | ||
26 | .Op·Fl·-dump·Ns·=·Ns·Ar·target | ||
27 | .Op·Fl·-verbose | ||
28 | .Op·Fl·-crash-report·Ns·=·Ns·Ar·template | ||
29 | .Op·Fl·- | ||
30 | .Op·Ar·program_file | ||
31 | . | 6 | .br |
7 | \fBruby\fP | ||
8 | [\fB\--copyright\fP] | ||
9 | [\fB\--version\fP] | ||
10 | [\fB\-SUacdlnpswvy\fP] | ||
11 | [\fB\-0\fP[\fIoctal\fP]] | ||
12 | [\fB\-C\fP·\fIdirectory\fP] | ||
13 | [\fB\-E\fP·\fIexternal\fP[:\fIinternal\fP]] | ||
14 | [\fB\-F\fP[\fIpattern\fP]] | ||
15 | [\fB\-I\fP·\fIdirectory\fP] | ||
16 | [\fB\-K\fP[\fIc\fP]] | ||
17 | [\fB\-T\fP[\fIlevel\fP]] | ||
18 | [\fB\-W\fP[\fIlevel\fP]] | ||
19 | [\fB\-e\fP·\fIcommand\fP] | ||
20 | [\fB\-i\fP[\fIextension\fP]] | ||
21 | [\fB\-r\fP·\fIlibrary\fP] | ||
22 | [\fB\-x\fP[\fIdirectory\fP]] | ||
23 | [\fB\--\fP{\fBenable\fP|\fBdisable\fP}-\fIFEATURE\fP] | ||
24 | [\fB\--dump\fP=\fItarget\fP] | ||
25 | [\fB\--verbose\fP] | ||
26 | [\fB\--crash-report\fP=\fItemplate\fP] | ||
27 | [\fB\--\fP] | ||
28 | [\fIprogram_file\fP] | ||
29 | [\fIargument\fP·...] | ||
32 | .S | 30 | .SH·DESCRIPTION |
33 | Ruby·is·an·interpreted·scripting·language·for·quick·and·easy | 31 | Ruby·is·an·interpreted·scripting·language·for·quick·and·easy |
34 | object-oriented·programming.··It·has·many·features·to·process·text | 32 | object-oriented·programming.··It·has·many·features·to·process·text |
35 | files·and·to·do·system·management·tasks·(like·in·Perl).··It·is·simple, | 33 | files·and·to·do·system·management·tasks·(like·in·Perl).··It·is·simple, |
36 | straight-forward,·and·extensible. | 34 | straight-forward,·and·extensible. |
37 | .Pp | ||
38 | If·you·want·a·language·for·easy·object-oriented·programming,·or·you | 35 | If·you·want·a·language·for·easy·object-oriented·programming,·or·you |
39 | don't·like·the·Perl·ugliness,·or·you·do·like·the·concept·of·LISP,·but | 36 | don't·like·the·Perl·ugliness,·or·you·do·like·the·concept·of·LISP,·but |
40 | don't·like·too·many·parentheses,·Ruby·might·be·your·language·of | 37 | don't·like·too·many·parentheses,·Ruby·might·be·your·language·of |
41 | choice. | 38 | choice. |
42 | .S | 39 | .SH·FEATURES |
43 | Ruby's·features·are·as·follows: | 40 | Ruby's·features·are·as·follows: |
44 | . | 41 | .TP |
45 | . | 42 | .B·"Interpretive" |
46 | Ruby·is·an·interpreted·language,·so·you·don't·have·to·recompile | 43 | Ruby·is·an·interpreted·language,·so·you·don't·have·to·recompile |
47 | programs·written·in·Ruby·to·execute·them. | 44 | programs·written·in·Ruby·to·execute·them. |
48 | .Pp | ||
45 | .TP | ||
49 | . | 46 | .B·"Variables·have·no·type·(dynamic·typing)" |
50 | Variables·in·Ruby·can·contain·data·of·any·type.··You·don't·have·to | 47 | Variables·in·Ruby·can·contain·data·of·any·type.··You·don't·have·to |
51 | worry·about·variable·typing.··Consequently,·it·has·a·weaker·compile | 48 | worry·about·variable·typing.··Consequently,·it·has·a·weaker·compile |
52 | time·check. | 49 | time·check. |
53 | .Pp | ||
50 | .TP | ||
54 | . | 51 | .B·"No·declaration·needed" |
55 | You·can·use·variables·in·your·Ruby·programs·without·any·declarations. | 52 | You·can·use·variables·in·your·Ruby·programs·without·any·declarations. |
56 | Variable·names·denote·their·scope·-·global,·class,·instance,·or·local. | 53 | Variable·names·denote·their·scope·-·global,·class,·instance,·or·local. |
57 | .Pp | ||
54 | .TP | ||
58 | . | 55 | .B·"Simple·syntax" |
59 | Ruby·has·a·simple·syntax·influenced·slightly·from·Eiffel. | 56 | Ruby·has·a·simple·syntax·influenced·slightly·from·Eiffel. |
60 | .Pp | ||
57 | .TP | ||
61 | . | 58 | .B·"No·user-level·memory·management" |
62 | Ruby·has·automatic·memory·management.··Objects·no·longer·referenced | 59 | Ruby·has·automatic·memory·management.··Objects·no·longer·referenced |
63 | from·anywhere·are·automatically·collected·by·the·garbage·collector | 60 | from·anywhere·are·automatically·collected·by·the·garbage·collector |
64 | built·into·the·interpreter. | 61 | built·into·the·interpreter. |
65 | .Pp | ||
62 | .TP | ||
66 | . | 63 | .B·"Everything·is·an·object" |
67 | Ruby·is·a·purely·object-oriented·language,·and·was·so·since·its | 64 | Ruby·is·a·purely·object-oriented·language,·and·was·so·since·its |
68 | creation.··Even·such·basic·data·as·integers·are·seen·as·objects. | 65 | creation.··Even·such·basic·data·as·integers·are·seen·as·objects. |
69 | .Pp | ||
66 | .TP | ||
70 | . | 67 | .B·"Class,·inheritance,·and·methods" |
71 | Being·an·object-oriented·language,·Ruby·naturally·has·basic | 68 | Being·an·object-oriented·language,·Ruby·naturally·has·basic |
72 | features·like·classes,·inheritance,·and·methods. | 69 | features·like·classes,·inheritance,·and·methods. |
73 | .Pp | ||
70 | .TP | ||
74 | . | 71 | .B·"Singleton·methods" |
75 | Ruby·has·the·ability·to·define·methods·for·certain·objects.··For | 72 | Ruby·has·the·ability·to·define·methods·for·certain·objects.··For |
76 | example,·you·can·define·a·press-button·action·for·certain·widget·by | 73 | example,·you·can·define·a·press-button·action·for·certain·widget·by |
77 | defining·a·singleton·method·for·the·button.··Or,·you·can·make·up·your | 74 | defining·a·singleton·method·for·the·button.··Or,·you·can·make·up·your |
78 | own·prototype·based·object·system·using·singleton·methods,·if·you·want | 75 | own·prototype·based·object·system·using·singleton·methods,·if·you·want |
79 | to. | 76 | to. |
80 | .Pp | ||
77 | .TP | ||
81 | . | 78 | .B·"Mix-in·by·modules" |
82 | Ruby·intentionally·does·not·have·the·multiple·inheritance·as·it·is·a | 79 | Ruby·intentionally·does·not·have·the·multiple·inheritance·as·it·is·a |
83 | source·of·confusion.··Instead,·Ruby·has·the·ability·to·share | 80 | source·of·confusion.··Instead,·Ruby·has·the·ability·to·share |
84 | implementations·across·the·inheritance·tree.··This·is·often·called·a | 81 | implementations·across·the·inheritance·tree.··This·is·often·called·a |
85 | .Sq·Mix-in·. | ||
86 | 82 | `Mix-in'. | |
83 | .TP | ||
87 | . | 84 | .B·"Iterators" |
88 | Ruby·has·iterators·for·loop·abstraction. | 85 | Ruby·has·iterators·for·loop·abstraction. |
89 | .Pp | ||
86 | .TP | ||
90 | . | 87 | .B·"Closures" |
91 | In·Ruby,·you·can·objectify·the·procedure. | 88 | In·Ruby,·you·can·objectify·the·procedure. |
92 | .Pp | ||
89 | .TP | ||
... Open expanded diff ... |