From d8ec0ed3f6734724843621101ff62e4dab0ba7d4 Mon Sep 17 00:00:00 2001 From: David Bryant Date: Sat, 31 Dec 2022 11:51:56 -0600 Subject: Clarified some things that seemed unclear. Altered references to "a startup file" to "startup files". Added detail to a reference to the bash info page. Tweaked description of mafunctions caused by invalid locales. Clarified descripton of extended ASCII characters. Every byte has the high-order bit *set*; in extended ASCII, that bit is *on*. --- chapter09/profile.xml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'chapter09/profile.xml') diff --git a/chapter09/profile.xml b/chapter09/profile.xml index e47153830..1b87632f7 100644 --- a/chapter09/profile.xml +++ b/chapter09/profile.xml @@ -16,10 +16,10 @@ The shell program /bin/bash (hereafter referred to as the shell) uses a collection of startup files to help - create an environment to run in. Each file has a specific use and may affect + create the environment to run in. Each file has a specific use and may affect login and interactive environments differently. The files in the /etc directory provide global settings. If an - equivalent file exists in the home directory, it may override the global + class="directory">/etc directory provide global settings. If + equivalent files exist in the home directory, they may override the global settings. An interactive login shell is started after a successful login, using @@ -30,8 +30,9 @@ because it is processing a script and not waiting for user input between commands. - For more information, see info bash under the - Bash Startup Files and Interactive Shells section. +For more information, see the Bash Startup Files and + Interactive Shells sections in the Bash + Features chapter of the Bash info pages (info bash). The files /etc/profile and ~/.bash_profile are read when the shell is @@ -91,8 +92,8 @@ ISO-8859-1 This results in a final locale setting of en_GB.ISO-8859-1. - It is important that the locale found using the heuristic above is tested prior - to it being added to the Bash startup files: + It is important that the locale found using the heuristic above is tested before + it is added to the Bash startup files: LC_ALL=<locale name> locale language LC_ALL=<locale name> locale charmap @@ -129,9 +130,9 @@ LC_ALL=<locale name> locale int_prefix For example, one would have to change "de_DE.ISO-8859-15@euro" to "de_DE@euro" in order to get this locale recognized by Xlib. --> - Other packages can also function incorrectly (but may not necessarily + Other packages may also function incorrectly (but will not necessarily display any error messages) if the locale name does not meet their expectations. - In those cases, investigating how other Linux distributions support your locale + In such cases, investigating how other Linux distributions support your locale might provide some useful information. Once the proper locale settings have been determined, create the @@ -147,16 +148,16 @@ EOF The C (default) and en_US.utf8 (the recommended one for United States English users) locales are different. C - uses the US-ASCII 7-bit character set, and treats bytes with the high bit set - as invalid characters. That's why, e.g., the ls command - substitutes them with question marks in that locale. Also, an attempt to send + uses the US-ASCII 7-bit character set, and treats bytes with the high-order bit set + on as invalid characters. That's why, e.g., the ls command + displays them as question marks in that locale. Also, an attempt to send mail with such characters from Mutt or Pine results in non-RFC-conforming messages being sent (the charset in the outgoing mail is indicated as unknown - 8-bit). So you can use the C locale only if you are sure that + 8-bit). So you can only use the C locale if you are sure you will never need 8-bit characters. UTF-8 based locales are not supported well by some programs. - Work is in progress to document and, if possible, fix such problems, see + Work is in progress to document and, if possible, fix such problems. See . -- cgit v1.2.3-54-g00ecf