[Bug 77278] grep component fails to search with spaces in path
Jens Dagerbo
jens.dagerbo at swipnet.se
Mon Mar 29 20:21:06 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
------- Additional Comments From jens.dagerbo swipnet se 2004-03-29 20:25 -------
CVS commit by dagerbo:
Fix bug #77278. Patch by Michal Ceresna.
CCMAIL: 77278 bugs kde org
M +6 -2 grepviewwidget.cpp 1.25.2.3
--- kdevelop/parts/grepview/grepviewwidget.cpp #1.25.2.2:1.25.2.3
@ -196,4 +196,8 @ void GrepViewWidget::searchActivated()
command += "| grep -v \"CVS/\" ";
}
+
+ // quote spaces in filenames going to xargs
+ command += "| sed \"s/ /\\\\\\ /g\" ";
+
command += "| xargs " ;
@ -239,6 +243,6 @ void GrepViewWidget::slotExecuted(QListB
GrepListBoxItem *gi = static_cast<GrepListBoxItem*>(i);
- m_part->partController()->editDocument( gi->filename(), gi->linenumber()-1 );
- m_part->mainWindow()->lowerView(this);
+ m_part->partController()->editDocument( KURL( gi->filename() ), gi->linenumber()-1 );
+// m_part->mainWindow()->lowerView(this);
}
More information about the KDevelop-devel
mailing list