bat-extras icon indicating copy to clipboard operation
bat-extras copied to clipboard

Fix parent process detection in batpipe

Open ebugusey opened this issue 2 years ago • 1 comments

Less is called with a filename, and if we basename CMD of less we get a basename of a filename, not a less executable. I think it's just a type that basename was piped to cut, CMD should be cut'ed before processed by basename.

As parent_executable is only used by batpipe, we can just cut CMD and extract program name.

ebugusey avatar May 28 '23 12:05 ebugusey

@ebugusey cheers for this!

nigelgbanks avatar Apr 20 '25 19:04 nigelgbanks