public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: David W Noon <dwnoon@ntlworld.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] setting locale
Date: Mon, 30 May 2011 18:46:47 +0100	[thread overview]
Message-ID: <20110530184647.32494130@karnak.local> (raw)
In-Reply-To: <gYd2O-i6-3@gated-at.bofh.it>

[-- Attachment #1: Type: text/plain, Size: 1125 bytes --]

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]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

       reply	other threads:[~2011-05-30 17:48 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gYbX5-6Uj-55@gated-at.bofh.it>
     [not found] ` <gYbX5-6Uj-57@gated-at.bofh.it>
     [not found]   ` <gYbX5-6Uj-53@gated-at.bofh.it>
     [not found]     ` <gYd2O-i6-3@gated-at.bofh.it>
2011-05-30 17:46       ` David W Noon [this message]
2011-05-30 19:03         ` [gentoo-user] setting locale Neil Bothwick
2011-05-30 20:34         ` Nils Larsson
2011-05-31 11:19           ` David Relson
2011-05-31 15:44             ` William Hubbs
2011-05-31 20:31               ` Mick
     [not found] <gXZCx-2Bo-7@gated-at.bofh.it>
     [not found] ` <gY0ff-3Pz-1@gated-at.bofh.it>
2011-05-30 14:43   ` David W Noon
2011-05-30 15:55     ` Neil Bothwick
2011-05-30 17:40     ` Florian Philipp
2011-05-30 18:23       ` Dale
2011-05-31  0:58     ` Allan Gottlieb
2011-05-31  2:11       ` daid kahl
2011-05-30  1:26 Allan Gottlieb
2011-05-30  2:07 ` Nils Larsson
2011-05-30 14:14   ` Allan Gottlieb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110530184647.32494130@karnak.local \
    --to=dwnoon@ntlworld.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox