Summary: | bash: PGRP_PIPE breaks ( exec 3>&1; : `echo>&3` ) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Harald van Dijk (RETIRED) <truedfx> |
Component: | [OLD] Unspecified | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | 2005.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | fix |
Description
Harald van Dijk (RETIRED)
2005-05-12 03:20:30 UTC
Works as expected here (app-shells/bash-3.0-r11) Err, correction. Works as expected for root only. ;-) can you downgrade to bash-3.0-r9 and see if that works as expected ? 3.0-r9 fails as well. Created attachment 61460 [details, diff]
fix
This patch (tested only with 3.0-r11) fixes things by simply moving fds 3 and 4
to 10 and 11 (or higher if they're already taken). Since shells are only
required to make fds 0 through 9 available to applications, and bash already
sometimes uses fds 10+ internally for other purposes, this shouldn't break
anything, and bash seems to work fine here. More testing would be good though.
e-mailed bash bug list with bug info and proposed patch upstream sent me the fix and ive added it to bash 3.0-r12 |