Bug 11440 - Unquoted $TERM in /etc/profile.d/color_ls.sh
Summary: Unquoted $TERM in /etc/profile.d/color_ls.sh
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: coreutils (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-10 13:38 MSD by Damir Shayhutdinov
Modified: 2009-05-10 09:33 MSD (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damir Shayhutdinov 2007-04-10 13:38:15 MSD
/etc/profile.d/color_ls.sh:25

-        if [ $TERM = "emacs" ]; then
+        if [ "$TERM" = "emacs" ]; then

If TERM variable is not set, following error message is displayed

/etc/profile.d/color_ls.sh:25: parse error: condition expected: =

if I try to rsync some file to ALT Sisyphus mashine from FC5 with
rsync <localfile> alt_mashine:<alt_path>
Comment 1 Dmitry V. Levin 2007-04-10 18:46:00 MSD
Fixed in coreutils-5.97-alt4.