Package: ksh
Version: 93u+20120801-2
Severity: normal

The following command works fine:

  ksh93 -c 'tless() { less; }; echo foo | tless'

However, if I do the samek thing in an interactive shell, this
no longer works:

$ tless() { less; }; echo foo | tless

hangs with ksh93 taking 100% CPU time and less taking 70% CPU time.

There is no such problem with other shells, including mksh.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ksh depends on:
ii  binfmt-support  2.1.6-1
ii  libc6           2.23-2

ksh recommends no packages.

ksh suggests no packages.

-- no debconf information

Reply via email to