summaryrefslogtreecommitdiff
path: root/tests/history2.sub
blob: 1a8e78c4bcde4fb28e8d4d5db6a2aad546dd1de0 (plain)
1
2
3
4
5
6
7
8
9
10
set -o history
HISTSIZE=256
HISTFILE=/dev/null

# these two lines should be the same
echo ${BASH_VERSION%\.*}
echo $(fc -nl -1)

echo ${BASH_VERSION%\.*}
fc -nl -1