GET-COMMAND-SEQUENCE

return list of commands that are between two command descriptors
Major Section:  HISTORY

Examples:
(get-command-sequence 4 12)
:gcs 4 12 ; same as above
(get-command-sequence 4 :x)
:gcs 4 :x ; same as above

See pcs for a utility that prints abbreviated information about the commands that are between two command descriptors. The utility get-command-sequence -- or simply gcs, so that you can just type :gcs at the prompt -- has the same syntax but instead of printing, it simply returns the corresponding list of commands. More precisely, it returns an error triple (mv erp val state) (see error-triples) such that if erp is not nil, then val is the desired list of commands.