Error in /etc/profile.d/i18n.sh
| Newsgroups | gmane.linux.lfs.beyond.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all, In the past I never really bothered with making shell scripts in the /etc/profile.d directory as it was easier to add whatever I needed to the one or two users I created for my use. In my current LFS build, I created all the scripts on the BLFS Bash Shell Startup Files page and the next time I logged in, I got an error message. Cut and paste from my terminal window: ================================================================== export LFS="/mnt/rml" echo $LFS sleep 5 chroot "$LFS" /usr/bin/env -i \ HOME=/root \ TERM="$TERM" \ PS1='(lfs chroot) to \u@/mnt/rml:\w > ' \ PATH=/usr/bin:/usr/sbin:/root/bin \ MAKEFLAGS="-j$(nproc)" \ TESTSUITEFLAGS="-j$(nproc)" \ /bin/bash --login alias c="cd /root/Sources ; rm -rf \$OLDPWD ; echo ' ' ; mv -v \$(basename \$OLDPWD)* /root/Installed ; echo ' ' ; ls" alias l='ls -lrt' /mnt/rml bash: /etc/profile.d/i18n.sh: line 9: syntax error near unexpected token `<' bash: /etc/profile.d/i18n.sh: line 9: ` export LANG=<ll>_<CC>.<charmap><@modifiers>' ================================================================== That text is from a copy and paste I do to enter the chroot environment. I put the sleep in so to ensure $LFS is set properly. Notice the error message at the end. The i18n.sh script needs to be fixed. Note the following: ================================================================== (lfs chroot) to root@/mnt/rml:~/Sources > export LANG=<ll>_<CC>.<charmap><\@modifiers> bash: syntax error near unexpected token `<' (lfs chroot) to root@/mnt/rml:~/Sources > export LANG="<ll>_<CC>.<charmap><@modifiers>" (lfs chroot) to root@/mnt/rml:~/Sources > echo $LANG <ll>_<CC>.<charmap><@modifiers> ================================================================== The first export is unquoted as what is in the book, the second I put the quotes in for LANG's definition. Perhaps the book should be updated. Let me know what y'all think. -- Randy -- http://lists.linuxfromscratch.org/sympa/info/blfs-dev Unsubscribe: See the above information page