ZOSOpenTools / grepport

Apache License 2.0
2 stars 0 forks source link

grep -r prints out errors on directories #4

Closed MikeFultonDev closed 1 year ago

MikeFultonDev commented 1 year ago

If I issue:

grep -r Grep *
README.md:Grep searches one or more input files for lines containing a match to a specified pattern. By default, Grep outputs the matching lines.
cicd.groovy:    build job: 'Port-Pipeline', parameters: [string(name: 'PORT_GITHUB_REPO', value: 'https://github.com/ZOSOpenTools/grepport.git'), string(name: 'PORT_DESCRIPTION', value: 'Grep searches one or more input files for lines containing a match to a specified pattern. By default, Grep outputs the matching lines.' )]
grep: grep-3.8: EDC5113I Bad file descriptor.
grep: install: EDC5113I Bad file descriptor.
grep: log: EDC5113I Bad file descriptor.
grep: patches: EDC5113I Bad file descriptor.

from the $HOME/zopen/dev/grepport directory, I get the 'Bad file descriptor.' (above).

IgorTodorovskiIBM commented 1 year ago

Does it use gnulib? If so, maybe this patch will resolve it: https://github.com/ZOSOpenTools/findutilsport/blob/main/patches/PR2/PR2.patch