On Mon, 30 May 2011 18:00:02 +0200, Neil Bothwick wrote about Re: [gentoo-user] setting locale:
>On Mon, 30 May 2011 15:43:19 +0100, David W Noon wrote: > >> Moreover, I never use file redirection from echo when a text editor >> is a more appropriate tool. What you have suggested above could well >> replace a valid locale setting with an that invalid one, without any >> checks at all on the existing contents of the file. So, it's best to >> use vim, nano or even emacs for such a job. > >Setting noclobber in /etc/profile.d/*shopts.sh avoids that particular >problem, as well was the one of accidentally nuking a file when you >meant to add to it with >>. Setting noclobber is fine for not obliterating the current contents of the file, but it does not help where the current contents need to be updated. That is why I *always* use a text editor to modify configuration files. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* [email protected] (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
signature.asc
Description: PGP signature

