Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
windows grep messed up
#1
I have long used windows (GNU) grep without incident ... until about 6 months ago
now when I use a command like:
grep -ri --include='*.py' 'messagebox' .
I immediately get an idle window with a copy of grep.py in it

Any clues on how to stop this most annoying behavior?

Same in cmder or cmd

I added an environment variable to no avail
Reply
#2
cmder comes with build in grep.
λ grep --version                                                                            
grep (GNU grep) 2.26                                                                        
Copyright (C) 2016 Free Software Foundation, Inc.                                           
License GPLv3+: GNU GPL version 3 or later <http://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 <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
Reply
#3
I am having the same issue no matter where I run grep.
Is there something wrong with my syntax?

So I tried grep --version (from cmder)
I immediately get the idle window.
I need to examine all of my paths more closely, this is an odd one.

I also tried:
λ which grep

/c/Program Files (x86)/GnuWin32/bin/grep
which is obviously taking precedence over cmder's grep
Reply
#4
GnuWin32 add automatically to Environment Variables(Path)
You can remove it there and restart.
If grep from cmder still start IDLE,you most look at File Associations,
and see if grep is pointing to something.
Reply
#5
Thanks -- MS-pain
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Text Order is Kinda Messed Up? Prithak 0 1,012 Feb-03-2022, 04:00 PM
Last Post: Prithak
  use subprocess on linux\pi wwith a "grep " command korenron 2 7,903 Oct-19-2021, 10:52 AM
Last Post: DeaD_EyE
  python2 python3 messed up : How to fix ? hary 15 7,838 Dec-30-2020, 08:26 PM
Last Post: hary
  How to grep corresponding value in another df Mekala 2 1,827 Oct-13-2020, 02:52 PM
Last Post: Mekala
  grep value files enigma619 0 1,488 Mar-04-2020, 02:21 PM
Last Post: enigma619
  I think I messed up python.... XavPro_QC 7 13,881 Aug-02-2019, 09:02 PM
Last Post: XavPro_QC
  Matplotlib is all messed up! 64humans 1 3,393 Mar-16-2019, 08:04 PM
Last Post: libervurto
  2 forms of this tool grep command Lylyhannah 0 1,949 Jan-21-2019, 08:21 AM
Last Post: Lylyhannah
  grep command based on lines in a pattern file Skaperen 1 2,159 Jan-07-2019, 10:23 AM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020