Package: tcsh
Version: 6.18.01-3
Severity: normal
Dear Maintainer,
The filetest built-in command does not recognize
filenames containing a '{' (left curly brace),
whether the filename (or just that character) is
single-quoted, double-quoted, or
backslash-escaped. Neither the ls-F built-in, nor
filename handling with regular (non built-in)
commands such as ls, appear to be affected by this
problem. I haven't checked all other shell
filename processing. See the transcript
below. (The rc[0-9] is part of the prompt and
displays the return code of the prior command.)
Note that the cases where a left curly brace is
present without a matching right curly brace
(history numbers 510-512) seem to be treated
differently from those where the braces are
present in a matched pair (history numbers
517-519), but in both cases, the behavior of
filetest appears to be incorrect.
################################################################################
Script started on Tue Aug 7 10:39:07 2018
rc0 501 > lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 8.11 (jessie)
Release: 8.11
Codename: jessie
rc0 502 > tcsh --version
tcsh 6.18.01 (Astron) 2012-02-14 (x86_64-unknown-linux) options
wide,nls,dl,al,kan,rh,nd,color,filec
rc0 503 > touch a
rc0 504 > ls a
a
rc0 505 > filetest -f a
1
rc0 506 > touch 'b{c'
rc0 507 > ls 'b{c'
b{c
rc0 508 > ls "b{c"
b{c
rc0 509 > ls b\{c
b{c
rc0 510 > filetest -f b\{c
Missing }.
rc1 511 > filetest -f 'b{c'
Missing }.
rc1 512 > filetest -f "b{c"
Missing }.
rc1 513 > touch 'd{}e'
rc0 514 > ls 'd{}e'
d{}e
rc0 515 > ls "d{}e"
d{}e
rc0 516 > ls d\{\}e
d{}e
rc0 517 > filetest -f 'd{}e'
0
rc0 518 > filetest -f "d{}e"
0
rc0 519 > filetest -f d\{\}e
0
rc0 520 > exit
Script done on Tue Aug 7 10:39:14 2018
################################################################################
-- System Information:
Debian Release: 8.11
APT prefers oldstable-updates
APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=ANSI_X3.4-1968)
(ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages tcsh depends on:
ii libc6 2.19-18+deb8u10
ii libtinfo5 5.9+20140913-1+deb8u3
tcsh recommends no packages.
tcsh suggests no packages.
-- no debconf information