Commit 83119db
repl: add friendly tips about how to exit repl
Imitate python repl, when the user enters 'exit' or 'quit',
no longer prompt 'Reference Error', but
prompts 'To exit, press ^D or type .exit'.
If the user defines variables named 'exit' or 'quit' ,
only the value of the variables are output
PR-URL: #20617
Fixes: #19021
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>1 parent 1ae076b commit 83119dbCopy full SHA for 83119db
File tree
Expand file treeCollapse file tree
2 files changed
+38
-4
lines changedOpen diff view settings
Filter options
- lib
- test/parallel
Expand file treeCollapse file tree
2 files changed
+38
-4
lines changedOpen diff view settings
Collapse file
+14-4Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
215 | 215 | |
216 | 216 | |
217 | 217 | |
| 218 | + |
218 | 219 | |
219 | 220 | |
220 | 221 | |
| 222 | + |
| 223 | + |
| 224 | + |
| 225 | + |
| 226 | + |
221 | 227 | |
222 | 228 | |
223 | 229 | |
| ||
313 | 319 | |
314 | 320 | |
315 | 321 | |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
316 | 328 | |
317 | 329 | |
318 | 330 | |
319 | | - |
| 331 | + |
320 | 332 | |
321 | 333 | |
322 | 334 | |
| ||
332 | 344 | |
333 | 345 | |
334 | 346 | |
335 | | - |
336 | 347 | |
337 | | - |
| 348 | + |
338 | 349 | |
339 | 350 | |
340 | | - |
341 | 351 | |
342 | 352 | |
343 | 353 | |
|
Collapse file
+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
132 | 132 | |
133 | 133 | |
134 | 134 | |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
135 | 158 | |
136 | 159 | |
137 | 160 | |
| ||
742 | 765 | |
743 | 766 | |
744 | 767 | |
| 768 | + |
745 | 769 | |
746 | 770 | |
747 | 771 | |
|
0 commit comments