1 |
On Mon, 30 May 2011 15:43:19 +0100, David W Noon wrote: |
2 |
|
3 |
> Moreover, I never use file redirection from echo when a text editor is |
4 |
> a more appropriate tool. What you have suggested above could well |
5 |
> replace a valid locale setting with an that invalid one, without any |
6 |
> checks at all on the existing contents of the file. So, it's best to |
7 |
> use vim, nano or even emacs for such a job. |
8 |
|
9 |
Setting noclobber in /etc/profile.d/*shopts.sh avoids that particular |
10 |
problem, as well was the one of accidentally nuking a file when you meant |
11 |
to add to it with >>. |
12 |
|
13 |
|
14 |
-- |
15 |
Neil Bothwick |
16 |
|
17 |
Microbiology: staph only. |