bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65238: grep can not using *.bat file pattern


From: moonhk
Subject: bug#65238: grep can not using *.bat file pattern
Date: Sat, 12 Aug 2023 08:44:31 +0800

Hi Support,

Install  by chocolatey

F:\shell grep --v
grep.exe (GNU grep) 3.7
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others; see
<https://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
Patched by: Michael M. Builov <mbuilov@gmail.com>

Error

F:\shell grep -i call *.bat
grep.exe: *.bat: Invalid argument

F:\shell


one accept file name only

F:\shell grep -i call home.bat
if /i "%~1"=="/?" call :header & call :usage "%~2" & goto :end
if /i "%~1"=="-?" call :header & call :usage "%~2" & goto :end
if /i "%~1"=="-h" call :header & call :usage "%~2" & goto :end
if /i "%~1"=="--help" call :header & call :usage "%~2" & goto :end

F:\shell

-- 
moonhkt
GMT+8


reply via email to

[Prev in Thread] Current Thread [Next in Thread]