Package: joe
Version: 4.4-1
Severity: normal

Dear Maintainer,

When piping text block through external command (via ctrl-k /), joe breaks
if external command parameters contains two consecutive slashes.

For example, piping (ctrl-k /) block through:
  sed -e 's/foo/bar/'
work normally, as does replacing by space:
  sed -e 's/foo/ /'
but piping it through:
  sed -e 's/foo//'

(to delete string 'foo')

fails with "/bin/sh: 1: Syntax error: Unterminated quoted string"

It also does weird syntax-coloring in "Command to filter file through"
prompt, showing all of command but last slash and apostrophe in green.  
Also when recalling command next time with up-arrow, it shows only slash 
and apostrophe instead of whole command!

The problem arises after upgrading from jessie to stretch - the joe in
jessie and before was working normally.

-- System Information:
Debian Release: 9.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=hr_HR.UTF-8, LC_CTYPE=hr_HR.UTF-8 (charmap=UTF-8), 
LANGUAGE=hr_HR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages joe depends on:
ii  libc6        2.24-11+deb9u1
ii  libncurses5  6.0+20161126-1
ii  libtinfo5    6.0+20161126-1

joe recommends no packages.

joe suggests no packages.

-- no debconf information

Reply via email to