Package: posh Version: 0.6.7 Severity: normal
Doing: [ a = a ] causes posh to read the content of the current directory which slows scripts down significantly if the current directory is big. set -f; [ a = a ] or \[ a = a ] stops posh from doing that which suggests globbing is involved. ~$ strace -e getdents64 posh -c '[ a ]' getdents64(3, /* 121 entries */, 4096) = 4080 getdents64(3, /* 120 entries */, 4096) = 4096 getdents64(3, /* 116 entries */, 4096) = 4080 getdents64(3, /* 117 entries */, 4096) = 4096 getdents64(3, /* 119 entries */, 4096) = 4096 getdents64(3, /* 120 entries */, 4096) = 4080 getdents64(3, /* 115 entries */, 4096) = 4080 getdents64(3, /* 57 entries */, 4096) = 2104 getdents64(3, /* 0 entries */, 4096) = 0 Process 8504 detached ~$ strace -e getdents64 posh -fc '[ a ]' Process 8526 detached ~$ strace -e getdents64 posh -c '\[ a ]' Process 8529 detached pdksh and mksh don't have the problem: ~$ strace -e getdents64 pdksh -c '[ a ]' Process 8536 detached ~$ strace -e getdents64 mksh -c '[ a ]' Process 8538 detached -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.25-rc8 (PREEMPT) Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15 (charmap=ISO-8859-15) Shell: /bin/sh linked to /bin/bash Versions of packages posh depends on: ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy ii libc6 2.7-11 GNU C Library: Shared libraries posh recommends no packages. -- debconf-show failed -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]