Context: The expression command uses artificial variables to store the expression
result. This result variable is unconditionally kept around after the expression command
has completed. These variables are known as persistent results. These are the variables
$0, $1, etc, that are displayed when running p or expression.
This change allows users to control whether result variables are persisted, by
introducing a --persistent-result flag.
This change keeps the current default behavior, persistent results are created by
default. This change gives users the ability to opt-out by re-aliasing p. For example:
command unalias p command alias p expression --persistent-result false --
For consistency, this flag is also adopted by dwim-print. Of note, if asked,
dwim-print will create a persistent result even for frame variables.
Do we expect people to actually use this flag or to just use an alias that has this turned on? If the latter, maybe we should only provide a long option, since the single-letter name space is precious?