Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 352706 Details for
Bug 475284
app-shells/bash-4.2_p39-r1: "exec 3>&2" causes illegal instruction (seen with app-admin/eselect-1.3.5)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch that tests for bash version
eselect-stderr-bash4.patch (text/plain), 515 bytes, created by
Ulrich Müller
on 2013-07-06 07:58:41 UTC
(
hide
)
Description:
Updated patch that tests for bash version
Filename:
MIME Type:
Creator:
Ulrich Müller
Created:
2013-07-06 07:58:41 UTC
Size:
515 bytes
patch
obsolete
>diff --git a/bin/eselect.in b/bin/eselect.in >index 8fd1589..6d7534b 100755 >--- a/bin/eselect.in >+++ b/bin/eselect.in >@@ -56,9 +56,13 @@ shopt -s extglob > shopt -s expand_aliases > > # Save stderr file descriptor >-# exec {ESELECT_STDERR}>&2 # >=bash-4.1 >-exec 3>&2 >-ESELECT_STDERR=3 >+if (( BASH_VERSINFO[0] == 4 && BASH_VERSINFO[1] >= 1 || BASH_VERSINFO[0] > 4 )) >+then >+ exec {ESELECT_STDERR}>&2 >+else >+ exec 3>&2 >+ ESELECT_STDERR=3 >+fi > > # Load core functions > source "${ESELECT_CORE_PATH}/core.bash" || exit 255
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 475284
:
352294
|
352300
|
352306
|
352690
|
352704
| 352706 |
358742
|
366358