To check executation, put an echo command in the preexec, like: echo I ran the preexec `date` > /tmp/junk > BTW how can I check execution of preexec-commands? I didn't find entry in > %m.log ... :-(