Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 337694 Details for
Bug 452736
[PATCH] it would be nice if the start script took an optional command with arguments
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
allow startprefix to take arguments
startprefix-wrapper.patch (text/plain), 900 bytes, created by
Ben Longbons
on 2013-02-02 18:29:27 UTC
(
hide
)
Description:
allow startprefix to take arguments
Filename:
MIME Type:
Creator:
Ben Longbons
Created:
2013-02-02 18:29:27 UTC
Size:
900 bytes
patch
obsolete
>--- startprefix.in.old 2013-02-02 10:15:49.000000000 -0800 >+++ startprefix.in 2013-02-02 10:20:45.000000000 -0800 >@@ -39,7 +39,13 @@ > # start the login shell, clean the entire environment but what's needed > # PROFILEREAD is necessary on SUSE not to wipe the env on shell start > [[ -n ${PROFILEREAD} ]] && DOPROFILEREAD="PROFILEREAD=${PROFILEREAD}" >-env -i HOME=$HOME TERM=$TERM USER=$USER SHELL=$SHELL $DOPROFILEREAD $SHELL -l >+if [ $# -eq 0 ] >+then >+ env -i HOME=$HOME TERM=$TERM USER=$USER SHELL=$SHELL $DOPROFILEREAD $SHELL -l >+else >+ # exit $? works around a bug where ~/.bash_logout may not be executed >+ env -i HOME=$HOME TERM=$TERM USER=$USER SHELL=$SHELL $DOPROFILEREAD $SHELL -l -c '"$@"; exit $?' this-argument-is-ignored "$@" >+fi > # and leave a message when we exit... the shell might return non-zero > # without having real problems, so don't send alarming messages about > # that
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 452736
: 337694