Sanjay, > >> my cygwin bash does not write anything in .bash_history . I think > >> it was working fine before and some changes done by me has caused it > >> to stop updating this file. > >> rxvt does not have this problem. > >> any pointers where could be the problem. > > Close bash by typing exit rather than clicking the Close button. > > > > Chris > > I always do that. > Sanjay
To enable history logging in bash, you should set your HISTFILE environment variable to the filename where the history is to be saved. HISTFILE=<HOME_DIRECTORY>/.bash_history But bash should do this automatically. For more details, check the bash man page and look for the string bash_history. Best Regards, Carlo ------ Carlo Florendo Astra Philippines Inc. URL: www.hq.astra.ph/resources -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/