Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 279721 Details for
Bug 374791
tighten 'has' wording so it works with arguments and not whitespace delimited strings
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
portage fix.
0001-restore-old-needle-haystack-has-implementation-that-.patch (text/plain), 799 bytes, created by
Brian Harring (RETIRED)
on 2011-07-11 08:34:53 UTC
(
hide
)
Description:
portage fix.
Filename:
MIME Type:
Creator:
Brian Harring (RETIRED)
Created:
2011-07-11 08:34:53 UTC
Size:
799 bytes
patch
obsolete
>From 352fa047bdaaf302424939662910447a17471df0 Mon Sep 17 00:00:00 2001 >From: Brian Harring <ferringb@gmail.com> >Date: Mon, 11 Jul 2011 01:33:21 -0700 >Subject: [PATCH] restore old needle/haystack has implementation that doesn't > screwup on whitespace > >Signed-off-by: Brian Harring <ferringb@gmail.com> >--- > bin/isolated-functions.sh | 9 ++++++++- > 1 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh >index 9d63397..deaca49 100644 >--- a/bin/isolated-functions.sh >+++ b/bin/isolated-functions.sh >@@ -525,7 +525,14 @@ hasv() { > } > > has() { >- [[ " ${*:2} " == *" $1 "* ]] >+ local needle=$1 >+ shift >+ >+ local x >+ for x in "$@"; do >+ [[ ${x} == ${needle} ]] && return 0 >+ done >+ return 1 > } > > # @FUNCTION: save_ebuild_env >-- >1.7.5.3 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 374791
:
279719
| 279721 |
279787
|
279795
|
736939