This looks OK. Could you please run completion of e.g. md that does not work correctly under set -x and attach results script set -x md teTAB ^C exit You will get typescript flie in current directory with complete output.