1
0
Fork 0

history: use external `mv` command for HISTFILE migration

This will make sure the actual external command `mv` is used instead of
wrapper function.
pull/1915/head
Indrajit Raychaudhuri 4 years ago committed by Indrajit Raychaudhuri
parent d80e393f78
commit 742c1ea26f

@ -46,7 +46,7 @@ NOTICE: Default path of 'HISTFILE' has changed from '${OLD_HISTFILE/#$HOME/~}'
to '${HISTFILE/#$HOME/~}'. to '${HISTFILE/#$HOME/~}'.
Attempting to rename the existing 'HISTFILE' ... Attempting to rename the existing 'HISTFILE' ...
EON EON
mv -v "$OLD_HISTFILE" "$HISTFILE" command mv -v "$OLD_HISTFILE" "$HISTFILE"
# New 'HISTFILE' does exist and is older than legacy one, just warn. # New 'HISTFILE' does exist and is older than legacy one, just warn.
elif [[ "$OLD_HISTFILE" -nt "$HISTFILE" ]]; then elif [[ "$OLD_HISTFILE" -nt "$HISTFILE" ]]; then

Loading…
Cancel
Save