sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 6343] New: gaze search -short exits with grep errors
- From: bugzilla-daemon AT metalab.unc.edu
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 6343] New: gaze search -short exits with grep errors
- Date: Fri, 12 Mar 2004 04:46:06 -0500
http://bugs.sourcemage.org/show_bug.cgi?id=6343
Summary: gaze search -short exits with grep errors
Product: Sorcery
Version: Devel
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Gaze
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: v.merkatz AT gmx.net
While testing the new gaze search, i ran into a problem with gaze search
-short
(which isn't affected by the new code i think):
arwed@Otherland:~$ gaze search -short live
live -> live
/usr/sbin/gaze: line 568: /usr/bin/grep: Argument list too long
/usr/sbin/gaze: line 568: /usr/bin/grep: Argument list too long
/usr/sbin/gaze: line 568: /usr/bin/grep: Argument list too long
arwed@Otherland:~$
The problem is quite obvious:
grep -il -- "${pattern}" $( codex_find_in_grimoire "$path" "$name" )
(in gaze/grep_find_grimoires)
codex_find_in_grimoire "path to grimoire" "DETAILS" gets called, which returns
all DETAILS files in the grimoire. This is a very long list, which can't
possibly be passed as a single argument.
An approach using find and xargs like in the new long search should probably
work.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
- [SM-Sorcery-Bugs] [Bug 6343] New: gaze search -short exits with grep errors, bugzilla-daemon, 03/12/2004
Archive powered by MHonArc 2.6.24.