diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-04-18 11:29:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-18 11:29:28 +0000 |
| commit | 67b68bd9893ad3a39af53ceee856ce5c61ed0638 (patch) | |
| tree | c19d3dbb1bea7540318ed9c9ce031a375f5d86c6 | |
| parent | a8187bb23035fe13a5a8942ad3768d5a6c819232 (diff) | |
| parent | 8e81bb1b12d196a98a62b1fe3cd8737a9c00b8c9 (diff) | |
| download | vyos-1x-67b68bd9893ad3a39af53ceee856ce5c61ed0638.tar.gz vyos-1x-67b68bd9893ad3a39af53ceee856ce5c61ed0638.zip | |
Merge pull request #5134 from natali-rs1985/T8479
T8479: The op-mode command `run show history` does not work from configuration mode
| -rw-r--r-- | op-mode-definitions/show-history.xml.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/op-mode-definitions/show-history.xml.in b/op-mode-definitions/show-history.xml.in index 1781fa267..a2619e69a 100644 --- a/op-mode-definitions/show-history.xml.in +++ b/op-mode-definitions/show-history.xml.in @@ -6,13 +6,13 @@ <properties> <help>Show command history</help> </properties> - <command>HISTTIMEFORMAT='%FT%T%z ' HISTFILE="$HOME/.bash_history" \set -o history; history</command> + <command>bash -c 'HISTTIMEFORMAT="%FT%T%z "; HISTFILE="'"$HOME"'/.bash_history"; \set -o history; history'</command> <children> <leafNode name="brief"> <properties> <help>Show recent command history</help> </properties> - <command>HISTTIMEFORMAT='%FT%T%z ' HISTFILE="$HOME/.bash_history" \set -o history; history 20</command> + <command>bash -c 'HISTTIMEFORMAT="%FT%T%z "; HISTFILE="'"$HOME"'/.bash_history"; \set -o history; history 20'</command> </leafNode> <virtualTagNode> <properties> @@ -21,7 +21,7 @@ <list><NUMBER></list> </completionHelp> </properties> - <command>HISTTIMEFORMAT='%FT%T%z ' HISTFILE="$HOME/.bash_history" \set -o history; history $3</command> + <command>bash -c 'HISTTIMEFORMAT="%FT%T%z "; HISTFILE="'"$HOME"'/.bash_history"; \set -o history; history '$3</command> </virtualTagNode> </children> </node> |
