id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3444	Use PATH environment variable for Filtered View	woodsb02	andrew_b	"mc does not use the PATH environment variable to search for the executable when performing a Filtered View command.

To replicate the problem:
1. In mc, open the ""File"" menu and select ""Filtered View""
2. In the displayed Filtered View command and arguments field, type ""grep PATTERN FILENAME""

Expected result: display output of grep command in mcview
Actual result: Error is displayed ""Cannot create pipe streams""

Reason: The grep command is not in the current directory, and the PATH environment variable is not used to search for the executable.


SYSTEM DETAILS:
$ uname -a
FreeBSD freenas 10.1-RELEASE-p9 FreeBSD 10.1-RELEASE-p9 #0: Tue Apr  7 01:09:46 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64


$ LC_MESSAGES=C mc -V
GNU Midnight Commander 4.8.14
Built with GLib 2.42.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;


$ LC_MESSAGES=C mc -F
Root directory: /home/woodsb02

[System data]
    Config directory: /usr/local/etc/mc/
    Data directory:   /usr/local/share/mc/
    File extension handlers: /usr/local/libexec/mc/ext.d/
    VFS plugins and scripts: /usr/local/libexec/mc/
        extfs.d:        /usr/local/libexec/mc/extfs.d/
        fish:           /usr/local/libexec/mc/fish/

[User data]
    Config directory: /home/woodsb02/.config/mc/
    Data directory:   /home/woodsb02/.local/share/mc/
        skins:          /home/woodsb02/.local/share/mc/skins/
        extfs.d:        /home/woodsb02/.local/share/mc/extfs.d/
        fish:           /home/woodsb02/.local/share/mc/fish/
        mcedit macros:  /home/woodsb02/.local/share/mc/mc.macros
        mcedit external macros: /home/woodsb02/.local/share/mc/mcedit/macros.d/macro.*
    Cache directory:  /home/woodsb02/.cache/mc/


$ mc --configure-options
 '--with-internal-edit' '--enable-charset' '--enable-nls' '--enable-vfs-smb' '--with-smb-configdir=/usr/local/etc' '--with-smb-codepagedir=/usr/local/etc/codepages' '--with-subshell' '--enable-x' '--with-screen=slang' '--with-slang-includes=/usr/local/include' '--x-libraries=/usr/local/lib' '--x-includes=/usr/local/include' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd10.1' 'build_alias=amd64-portbld-freebsd10.1' 'CC=cc' 'CFLAGS=-O2 -pipe  -DLIBICONV_PLUG -fstack-protector -fno-strict-aliasing' 'LDFLAGS= -L/usr/local/lib -fstack-protector' 'LIBS=' 'CPPFLAGS=-I/usr/local/include -DLIBICONV_PLUG' 'CPP=cpp' 'PKG_CONFIG=pkgconf'"	defect	closed	major	4.8.15	mc-core	master	fixed					merged	committed-master
