Package: tcsh
Version: 6.14.00-7
Severity: normal

The following example shows that tcsh doesn't support CR/LF end-of-lines
but there is no such error when the csh package is installed. Since tcsh
may be used as a replacement for csh (via alternatives), it should be
compatible with csh.

$ cat tst.csh
#! /bin/csh -f
echo OK
$ hd tst.csh
00000000  23 21 20 2f 62 69 6e 2f  63 73 68 20 2d 66 0d 0a  |#! /bin/csh -f..|
00000010  65 63 68 6f 20 4f 4b 0d  0a                       |echo OK..|
00000019
$ ./tst.csh
'nknown option: `-
Usage: csh [ -bcdefilmnqstvVxX ] [ argument ... ].
zsh: exit 1     ./tst.csh

with: /bin/csh -> /etc/alternatives/csh -> /bin/tcsh

Here I suppose that -f[CR] is regarded as equivalent to -f -[CR],
hence the error message:

Unknown option: `-[CR]'

(BTW, the '^M' of the error message from bash or zsh when the
'-f' option isn't present is much better.)

When the csh package is installed:

$ ./tst.csh
OK

with: /bin/csh -> /etc/alternatives/csh -> /bin/bsd-csh

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.23-1-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages tcsh depends on:
ii  libc6                     2.7-6          GNU C Library: Shared libraries
ii  libncurses5               5.6+20080105-1 Shared libraries for terminal hand

tcsh recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to