New answers tagged


(1) history is a shell builtin; there is no executable (2) bash -c makes bash noninteractive, and noninteractive shells don't use history. This is not very well documented, but I need both -i and set -o history to get history into a shell with -c: bash -ic 'set -o history; history' (Tested in 4.1.2(1) on RedHat and 4.3.11(1) on Ubuntu) (3) timestamps ...

Top 50 recent answers are included