George R Goffe wrote: > I have noticed that some commands appear in history and some do > not. I have isolated that to commands that have blanks before their > name. I sometimes see this with pasted commands but this may be the > same problem. > > Am I doing something wrong by any chance?
This is a feature so that a user may control what commands go into the history and which do not. In the bash man page it says: HISTCONTROL A colon-separated list of values controlling how commands are saved on the history list. If the list of values includes ignorespace, lines which begin with a space character are not saved in the history list. Remove "ignorespace" from HISTCONTROL and it will save commands that begin with a space too. Bob