On Wednesday 15 July 2009 02:43:26 pm David C. Rankin wrote:
Listmates,
Is there a new feature in vi that automatically sources .bashrc after editing it? In KDE4.3-B2, I edited .bashrc with vi in konsole. I added an alias. When I :wq'ed I tried the alias to see if there was a conflict before sourcing my .bashrc.
To my great surprise, the bash shell executed the alias as if I had already sourced .bashrc. This was a surprise, albeit a cool surprise. So my question, where is this new feature? In vi? In bash? In readline? Where?
I notice this is new in the process list: 4821 pts/4 Ss+ 0:00 bash -rcfile .bashrc From man bash: --rcfile file Execute commands from file instead of the standard personal initialization file ~/.bashrc if the shell is interactive (see INVOCATION below). If the --rcfile option provides for executing commands from a file "instead of the standard personal initialization file ~/.bashrc", the "bash --rcfile .bashrc" seems to be a bit unnecessary. Anybody know anything about this change? -- David C. Rankin, J.D.,P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 Telephone: (936) 715-9333 Facsimile: (936) 715-9339 www.rankinlawfirm.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org