-
Bug
-
Resolution: Fixed
-
P3
-
10
All commands which take snippet IDs take snippet ranges -- a range of snippets separated by a hypen.
For example:
/list 3-17
/drop 3-17
These list then drop snippets 3, 4, 5, ..., 16, 17
The commands are /list, /vars, /method, /type, /edit, /drop, and /save.
Additionally, the rerun-ID command allows ranges:
/3-17
Which reruns commands 3 through 17.
Also missing in the reference, the rerun-ID command takes a list of IDs too:
/4 8 9
Well, actually, they all (the commands and rerun command) take a list, the items of which may be an ID, an ID-range, or a name. The rerun command must start with an ID or ID-range.
/save foo 4-72 99
/4 1-3 c
For example:
/list 3-17
/drop 3-17
These list then drop snippets 3, 4, 5, ..., 16, 17
The commands are /list, /vars, /method, /type, /edit, /drop, and /save.
Additionally, the rerun-ID command allows ranges:
/3-17
Which reruns commands 3 through 17.
Also missing in the reference, the rerun-ID command takes a list of IDs too:
/4 8 9
Well, actually, they all (the commands and rerun command) take a list, the items of which may be an ID, an ID-range, or a name. The rerun command must start with an ID or ID-range.
/save foo 4-72 99
/4 1-3 c
- relates to
-
JDK-8167554 jshell tool: re-execute a range and/or sequence of snippets
-
- Resolved
-
-
JDK-8180508 jshell tool: support id ranges in all commands with id arguments
-
- Resolved
-