| Summary: | sandbox bashrc looks very wrong | ||
|---|---|---|---|
| Product: | Portage Development | Reporter: | ferret <ferret-bgo> |
| Component: | Sandbox | Assignee: | Sandbox Maintainers <sandbox> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | ed, jakub |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
It's correct. [[ ]] tests have their own semantics for globbing. See bash(1). (In reply to comment #1) > It's correct. [[ ]] tests have their own semantics for globbing. See bash(1). > Ditto - bug is invalid. |
I don't really have the time or knowledge to test this at the moment, but I happened to glance at /usr/share/sandbox/sandbox.bashrc : if [[ -n ${LD_PRELOAD} && ${LD_PRELOAD} != *$SANDBOX_LIB* ]] ; then export LD_PRELOAD="${SANDBOX_LIB} ${LD_PRELOAD}" elif [[ -z ${LD_PRELOAD} ]] ; then export LD_PRELOAD="${SANDBOX_LIB}" fi The if statement looks bad. '*' is pathname expansion in bash, but it's trying to do string matching or something here by the look of it.