[Bug 77278] grep component fails to search with spaces in path
Jens Dagerbo
jens.dagerbo at swipnet.se
Thu Mar 11 17:01:20 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=77278
jens.dagerbo swipnet se changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From jens.dagerbo swipnet se 2004-03-11 17:00 -------
CVS commit by dagerbo:
Fix bug #77278. Patch by Michal Ceresna.
CCMAIL: 77278-done bugs kde org
M +5 -1 grepviewwidget.cpp 1.30
--- kdevelop/parts/grepview/grepviewwidget.cpp #1.29:1.30
@ -196,4 +196,8 @ void GrepViewWidget::searchActivated()
command += "| grep -v \"CVS/\" ";
}
+
+ // quote spaces in filenames going to xargs
+ command += "| sed \"s/ /\\\\\\ /g\" ";
+
command += "| xargs " ;
@ -240,5 +244,5 @ void GrepViewWidget::slotExecuted(QListB
GrepListBoxItem *gi = static_cast<GrepListBoxItem*>(i);
m_part->partController()->editDocument( KURL( gi->filename() ), gi->linenumber()-1 );
- m_part->mainWindow()->lowerView(this);
+// m_part->mainWindow()->lowerView(this);
}
More information about the KDevelop-devel
mailing list