Package: base-files
Version: 7.1
Severity: normal

Typing "sudo su - " reports:
-su: [: ­f: unary operator expected

A different variation of the same problem affects squeeze as well, this time
with error:
-su: /root/.bashrc: line 20: syntax error: unexpected end of file

The cause of these errors is the if function at the end of the file
/root/.bashrc.

wheezy:

if [ ! ­f $USER ]
then
      /usr/bin/mesg n
fi

squeeze (not 100% sure, copied from memory):

if [ ! ­-f $USER ]\nthen /usr/bin/mesg n\nfi

Differences between the two: before $USER notice the f and -f, squeeze all on
same line.

Commenting these lines fixes the reported error.



-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages base-files depends on:
ii  mawk [awk]  1.3.3-17

base-files recommends no packages.

base-files suggests no packages.

-- Configuration Files:
/etc/issue changed [not included]
/etc/issue.net changed [not included]

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to