Ticket #288 (closed defect: fixed)
BASH_REMATCH variable not filtered from environment
| Reported by: | AstralStorm | Owned by: | ciaranm |
|---|---|---|---|
| Priority: | MinorRelease | Milestone: | |
| Component: | clients/paludis | Version: | 0.24.2 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Distribution: |
Description
Paludis doesn't filter variable BASH_REMATCH out. It can appear in environment if someone uses bash regexp matches, for instance in bashrc or ebuild.
Sample error (due to the use of matching in bashrc):
bunzip2 < /var/db/pkg/sys-apps/paludis-0.22.2/environment.bz2 > /mnt/store/build/environment-sys-apps-paludis-0.22.2-21569 ebuild_scrub_environment /mnt/store/build/environment-sys-apps-paludis-0.22.2-21569 /mnt/store/build/environment-sys-apps-paludis-0.22.2-21569: line 11: BASH_REMATCH: readonly variable
!!! ERROR in sys-apps/paludis-0.22.2: !!! In ebuild_load_environment at line 237 !!! Can't load saved environment for cleaning
Attachments
Change History
Changed 6 years ago by AstralStorm
-
attachment
fix_bash_rematch_variable.diff
added
Changed 6 years ago by AstralStorm
-
attachment
fix_bash_rematch_variable_2.diff
added
Second patch to fix that variable

Patch to fix BASH_REMATCH variable handling