ALT Linux Bugzilla
– Attachment 1510 Details for
Bug 9148
Проблемы с bash вызваным как /bin/sh
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
патч проверки вызванного шелла
patch (text/plain), 910 bytes, created by
Vadim Gusev
on 2006-06-01 16:04:17 MSD
(
hide
)
Description:
патч проверки вызванного шелла
Filename:
MIME Type:
Creator:
Vadim Gusev
Created:
2006-06-01 16:04:17 MSD
Size:
910 bytes
patch
obsolete
>diff -uNr orig/etc/profile.d/bash-completion.sh my/etc/profile.d/bash-completion.sh >--- orig/etc/profile.d/bash-completion.sh 2006-01-18 19:28:45 +0300 >+++ my/etc/profile.d/bash-completion.sh 2006-06-01 16:00:11 +0400 >@@ -1,7 +1,10 @@ >-bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} >-if [ "$PS1" ] && [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] || [ $bmajor -gt 2 ] \ >- && [ -f /etc/bash_completion ]; then # interactive shell >- # Source completion code >- . /etc/bash_completion >+if [ "$PS1" ] && [ -f /etc/bash_completion ]; then >+ if [ ! -z "$SHELL" ] && [ "bash" == "${SHELL##*/}" ]; then >+ bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} >+ if [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] || [ $bmajor -gt 2 ]; then # interactive shell >+ # Source completion code >+ . /etc/bash_completion >+ fi >+ unset bash bmajor bminor >+ fi > fi >-unset bash bmajor bminor
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 9148
: 1510