show ? is refused as an invalid command, one word after show ip ? answers the same question #1673
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge#1673
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The reproduction
At any prompt:
So the operator who is unsure of the first word of a
showline is told the key itself is invalid, and the one who is unsure of the second is handed the list.test/help-key-works-in-every-prompt.test.jspins?at all five prompts, and the note overEXEC_WORDSinengine/cli.jsnames the two positions where this console keeps a complete table - the first word of an EXEC line, and the view word aftershow. The second of those is the one that refuses the key.Why it is the table that matters, not the key
interface ?,speed ?and the rest are deliberately left alone, and the reason is written down: there is no complete list of what may stand there, so a short word cannot be told from an ambiguous one and the console does not guess. The view word aftershowis different -SHOW_VIEW_WORDSis that complete list, and the dispatcher already resolves abbreviations against it (sh ver,sh sp). Answering?from the same table cannot advertise a view thatshowthen refuses.What should happen
show ?lists the views, from the table the dispatcher uses rather than a second copy of it, naming the aliasesshow port-channel summaryneeds (port-channelforetherchannel,runforrunning-config,interfaceforinterfaces), and pointing atshow ip ?for the views one word deeper. Nothing else changes:showwith no word, an unknown word, and an ambiguous prefix keep the answers they have today.show ?lists the views instead of calling the key an invalid command #1679show ?is the one position with a table that refuses the key (#1673) #1680