diff options
| -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> |
