Summary: | emerge --list-sets runs $PROMPT_COMMAND but doesn't find function it points to | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Paul Sopka <psopka> |
Component: | Core - External Interaction | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED INVALID | ||
Severity: | minor | CC: | psopka, zmedico |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | bash script defining $PROMPT_COMMAND and promtColor |
Description
Paul Sopka
2024-02-16 14:14:26 UTC
This suggests the shall you're calling emerge from a shell that has PROMPT_COMMAND exported but does not have promtColor exported from /etc/bash/bashrc.d/examplefile. Does the file export the function or not? If not then it's not really valid to use in an exported PROMPT_COMMAND. $PROMPT_COMMAND is set in and the function it is set to are in /etc/bash/bashrc.d/examplefile. I suspected a bug in portage, since the issue only occurs on some emerge commands, but not on all. Portage only runs PROMPT_COMMAND when it calls xtermTitle and xtermTitleReset functions for some commands, not all commands, so we don't expect to see the error for every emerge command. Can you attach your /etc/bash/bashrc.d/examplefile file? You need something like this in there: export -f promtColor Created attachment 885160 [details]
bash script defining $PROMPT_COMMAND and promtColor
(In reply to Paul Sopka from comment #4) > Created attachment 885160 [details] > bash script defining $PROMPT_COMMAND and promtColor It looks like you just need to add this: export -f promtColor Thank you very much, it works! I am sorry to have bothered you with my unsuficcient understanding of bash. Thank you for working on Portage, it is truly amazing. Have a nice weekend Paul |