Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 50888

Summary: updated bash ebuild with PREEXEC_COMMAND patch
Product: Gentoo Linux Reporter: Sven Wegener <swegener>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://netzverschmutzer.org/~rvb/scripts.shtml
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: bash-2.05b-r9-to-r10.patch

Description Sven Wegener gentoo-dev 2004-05-12 16:06:19 UTC
hi,

i updated the ebuild to use the PREEXEC_COMMAND patch from http://netzverschmutzer.org/~rvb/scripts.shtml

this patch modifies bash so that the contents of the shell variable
PREEXEC_COMMAND will be executed before bash will execute a command.
it also modifies bash to set the array CMD to the current running
program + arguments. for example PREEXEC_COMMAND='echo -en "\033]2;${CMD[*]}\a"'
will update the title bar of xterms with the current running command.
in conjunktion with PROMPT_COMMAND which is by default in
/etc/skel/.bashrc this keeps track about which command you're running
in which xterm. i would suggest if this patch gets applied that
the above PREEXEC_COMMAND statement is inclued in /etc/skel/.bashrc

sven
Comment 1 Sven Wegener gentoo-dev 2004-05-12 16:07:34 UTC
Created attachment 31302 [details, diff]
bash-2.05b-r9-to-r10.patch
Comment 2 SpanKY gentoo-dev 2004-12-15 18:55:16 UTC

*** This bug has been marked as a duplicate of 31414 ***