When nothing is typed for macro %{some text} in a user menu entry, the rest of the script is not run #3891
Labels
area: core
Issues not related to a specific subsystem
prio: low
Minor problem or easily worked around
Milestone
Important
This issue was migrated from Trac:
marcelpaulo
(@marcelpaulo)macro
,enter
,exit
mc version: 4.8.19-1 (from Ubuntu repository)
environment: Xubuntu 17.10
When the macro %{some text} is used in a user menu entry, and nothing is typed — if only key <enter> is pressed —, the rest of the commands are not run, as if the script exited.
I'm not sure if this is the expected behavior. The man page doesn't mention anything, only that F10 or ESC can cancel.
It would be interesting if the script didn't exit, so that the variable receiving the text from the macro could be tested for empty/undefined.
Steps to reproduce
There will be no output, as if the script exited before echo "text = $text was run.
The text was updated successfully, but these errors were encountered: