Package: tcsh
Version: 6.17.02-4
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch



*** /tmp/tmpihfWrA
In Ubuntu, the attached patch was applied to achieve the following:

  * debian/csh.login:
    - Apply patch by Douglas Phillips to use full path for ls, fixing
      the script for people with an aliased ls.  LP: #70763

When - as usual - the ls command is aliased to the internal ls-F command, and 
the directory contains a link, that script fails, since ls-F appends a @ to the 
filename. Similar problem for executable files ( *-suffix).

Thanks for considering the patch.


-- System Information:
Debian Release: squeeze/sid
  APT prefers natty-updates
  APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.37-10-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u tcsh-6.17.02/debian/csh.login tcsh-6.17.02/debian/csh.login
--- tcsh-6.17.02/debian/csh.login
+++ tcsh-6.17.02/debian/csh.login
@@ -1,8 +1,8 @@
 # /etc/csh.login: system-wide .login file for csh(1) and tcsh(1)
 
 # allow for other packages/system admins to customize the shell environment
-if (-e /etc/csh/login.d && `ls /etc/csh/login.d` != "") then
-  foreach FILE (`ls /etc/csh/login.d/*`)
+if (-e /etc/csh/login.d && `/bin/ls /etc/csh/login.d` != "") then
+  foreach FILE (`/bin/ls /etc/csh/login.d/*`)
     source $FILE;
   end;
 endif

Reply via email to