Package: csh
Version: 20070713-1
Severity: important

In my cshell script I can't test the $? variable.
I get this error:
Illegal variable name.

In Debian Etch this sample script run ok but in Lenny don't work.
I report the script:

#!/bin/csh
ls -l >& /dev/null
if ( $? == 0) then
  echo "ls -l ok!"
else
  echo "ls -l error!"
endif

Best regards,
  Emiliano Visentin

-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages csh depends on:
ii  libc6                       2.7-18lenny6 GNU C Library: Shared libraries

csh recommends no packages.

csh suggests no packages.

-- no debconf information



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

Reply via email to