
פורסם: 30/03/2005 - 16:18
נושא ההודעה: קצת עזרה עם תהליכים ב-bash על Xterm בבקשה
|
כאשר מריצים את הקוד הבא הטרמינל הוירטואלי נסגר:
| קוד: | | ls -l | function foo() { echo "foo foo kaka"; } |
אם הבנתי נכון זה מפני שהקריאה לפונקציה גורמת לbash ליצור תהליך-בן, שכאשר מסתיים גורם לסגירת הVT (מכיוון שאין לטרמינל לאן לחזור).
אם כך :
א. למה התוכנה לא מחזירה שליטה לתהליך האב המקורי אלא נסגרת ?
ב. האם יתכן מצב שבו הפונקציה לא תגרום ליצירת תהליך נוסף ?
ג. כיצד אפשר להריץ את הקוד הנ"ל בטרמינל הוירטואלי מבלי שבסוף הפעולה האמולטור יסגר ?
תודה.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 30/03/2005 - 17:27
נושא ההודעה:
|
|
הקוד רץ בתהליך בן מכיוון שהוא רץ בתוך pipe. זה לא קשור לעובדה שיש שם פונקציה.
לדוגמה:
a=1
echo $a
test | a=2
echo $a
a=2
echo $a
אם נפתח מסוף רק כדי להריץ את הפקודה שלך, הוא ייסגר כשהיא תסתיים לרוץ, כלומר מייד.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 30/03/2005 - 18:21
נושא ההודעה:
|
|
מעריך את עזרתך צפריר.
או קי, אז
אני פותח טרמינל אמולטור, עושה פעולות מכאן ועד הודעה חדשה, איך שאני מזין את הקוד מההודעה הראשונה שלי, אותו חלון טרמינל שבו עבדתי לפני שניה נסגר ללא התראה מוקדמת.
האם זה נורמלי ?
ואם כן אז כיצד ניתן להימנע מזה ?
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 16:49
נושא ההודעה:
|
אולי בכל זאת מישהו יודע?
יתכן ולא התנסחתי טוב, ולכן אותה שאלה הניסוח מצומצם:
האם זה "הגיוני" שבמהלך עבודה שוטפת בטרמינל הוירטואלי, הרצף הפקודות | קוד: | | ls -l | function foo() { echo "foo foo kaka"; } |
יגרום לסגירה מיידית של הטרמינל? וגם האם קיימת אפשרות למנוע זאת?
מודה על העזרה.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 17:34
נושא ההודעה:
|
|
לא מצליח לשחזר את הבעיה אצלי.
אתה בטוח שזו בעיה של ה־SHELL ולא של המסוף?
תריץ פעם אחת $SHELL כדי להיות ב־subshell . כדי לדעת באיזה "עומק אתה, העזר בערכו של המשתנה SHLVL . תריץ משם את הפקודה הבעייתית ותראה אם עף לך ה־shell עצמו או כל המסוף.
תבדוק גם עם $SHELL -l כי יש סיכוי לא רע שהמסוף שלך יוצר login shell.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 17:52
נושא ההודעה:
|
I'm not sure about anything
| קוד: | bash-2.05b$ echo $SHELL
/bin/bash
bash-2.05b$ echo $SHLVL
3
bash-2.05b$ $SHELL
bash-2.05b$ echo $SHLVL
4
bash-2.05b$ ls -l | function foo() { echo "foo foo kaka"; }
bash-2.05b$ exit
bash-2.05b$ echo $SHLVL
3
bash-2.05b$ $SHELL -l
hq4ever@HitSYNC hq4ever $ echo $SHLVL
4
hq4ever@HitSYNC hq4ever $ ls -l | function foo() { echo "foo foo kaka"; }
hq4ever@HitSYNC hq4ever $ logout
|
?
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 19:03
נושא ההודעה:
|
|
את הפקודות exit ו־logout הקלדת ידנית?
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 19:36
נושא ההודעה:
|
מובן שלא.
אחרת מה כל הפואנטה?
גם exit וגם logout הופיעו באופן עצמאי לאחר הקלדת השורה | קוד: | | ls -l | function foo() { echo "foo foo kaka"; } |
.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 20:24
נושא ההודעה:
|
|
האם מדובר על הטקסט המדוייק הזה? האם שמה של הפונקציה משנה?
ניסית להקליד אותו מחדש? אולי השתרבב פנימה משהו מוזר?
אם מדובר על פונקציה בשם foo: האם יש כבר משהו בשם הזה?
which foo
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 20:54
נושא ההודעה:
|
| קוד: | bash-2.05b$ $SHELL
bash-2.05b$ true | bar() { echo "Is this my computer's idea of an \"april 1st joke?\" (:"; }
bash-2.05b$ exit
|
| קוד: |
bash-2.05b$ which foo
which: no foo in (/bin:/usr/bin:/usr/local/bin:/opt/bin:###
/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:/opt/blackdown-jdk-1.4.1/bin:###
/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin)
### - It's my marker for \n in order to not break whatsup page rendering,
It's not part of the original output of `which`
|
Thnx for the help, Tzafrir.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 21:03
נושא ההודעה:
|
סגרתי את X וניסיתי את הקוד הבא מה-Shell הטקסטואלי
(אני מעתיק ממסך למסך, כך שיתכנו טעויות מינוריות)
| קוד: |
HitSYNC root # true | foo2() { echo "No X"; }
HitSYNC root # e
-bash e: command not found |
כפי שתוכל לראות התוצאה במקרה הזה היא שונה, ה Shell לא "עשה" exit.
אולם, אין זה משנה איזו אות מזינים לאחר השורה של foo2, תמיד התוצאה זהה "-bash e: command not found".
נדמה לי שהמערכת אוגרת חלק מהתו (או מקוד היציאה של הפקודה האחרונה) באיזה שהוא buffer ש bash דואג "לבצע" ברגע שהוא מתמלא (קרי 2 תווים, Unicode), יתכן ?
נערך לאחרונה על-ידי hq4ever בתאריך 01/04/2005 - 21:11, סך-הכל נערך פעם אחת
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 21:08
נושא ההודעה:
|
The output of `locale`, both in X or in textuale, for both root & "hq4ever" is the same.
| קוד: |
bash-2.05b$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
|
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 22:18
נושא ההודעה:
|
|
עצה קטנה: אם אתה לא בטוח מה בדיוק ה־shell הולך להריץ, לא כדאי לעשות את הנסיונות הללו בתור root. יש כל מיני פקודות מוזרות שלא כדאי ש־root יריץ.
לעומת זאת, אתה יכול ליצור משתמש חדש ולערוך נסיונות איתו.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 01/04/2005 - 22:48
נושא ההודעה:
|
האם התירוץ שהרצתי זאת מתוך chrooted envirment יתקבל כאן ? (אני לא, אבל בהנחה שהייתי נוהג כן  )
פשוט רציתי להראות שגם root מושפע מההתנהגות המוזרה.
כמובן שההערה היתה במקומה ואני אזכור זאת להבא, תודה.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 03/04/2005 - 13:35
נושא ההודעה:
|
רעיונות / הצעות מישהו ?
כיצד ניתן להתחקות אחרי הפעולה של bash? אולי שם יהיה רמז למה שהולך כאן.
דבר אחד שכן שמתי לב אליו, exit ו- logout זה רק בbash.
sh מינימלי, גם על xterm וגם בקונסול טקסט נותן את הפלט הבא:
| קוד: |
bash-2.05b$ echo $SHLVL
3
bash-2.05b$ /bin/sh
sh-2.05b$ echo $SHLVL
4
sh-2.05b$ true | a() { true; }
sh-2.05b$ r
sh: r: command not found
sh-2.05b$ echo $SHLVL
4
|
|
|
|
| חזרה לתוכן הדיון |

פורסם: 03/04/2005 - 22:08
נושא ההודעה:
|
|
בדקתי אצלי, סתם מתוך סקרנות, וקורה בדיוק מה שמתאר hq4ever (ג"כ דביאן testing). זה קורה גם ב Konsole וגם בטרמינל טקסטואלי (alt+ctrl+f1). לכן נראה לי שזו התנהגות של bash.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 03/04/2005 - 22:55
נושא ההודעה:
|
|
strace או ltrace יכולים לעזור לעקוב אחרי פעילות.
לחילופין: תבנה את bash עם debug information ותריץ עם gdb .
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 00:39
נושא ההודעה:
|
| עמית : | | בדקתי אצלי, סתם מתוך סקרנות, וקורה בדיוק מה שמתאר hq4ever (ג"כ דביאן testing). זה קורה גם ב Konsole וגם בטרמינל טקסטואלי (alt+ctrl+f1). לכן נראה לי שזו התנהגות של bash. |
איזה הפצה ?
איזה קרנל ?
איזה glibc ?
איזה גירסה של bash ?
איזה (כל מה שעוד יכול להיות קשור) ?
| קוד: |
bash-2.05b$ /lib/libc.so.6
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.
.1).
Compiled on a Linux 2.6.8 system on 2005-03-18.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
linuxthreads-0.10 by Xavier Leroy
The C stubs add-on version 2.1.2.
GNU Libidn by Simon Josefsson
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
bash-2.05b$ gcc -v
Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/specs
Configured with: /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/configure --enabl
-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gc
-bin/3.3.5 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include --data
ir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5 --mandir=/usr/share/gcc-data/i68
-pc-linux-gnu/3.3.5/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/i
fo --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/include/g++-
3 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-ge
text --enable-__cxa_atexit --enable-clocale=gnu --with-system-zlib --disable-ch
cking --disable-werror --disable-libunwind-exceptions --enable-shared --enable-
hreads=posix --enable-java-awt=gtk --enable-languages=c,c++,f77,java
Thread model: posix
gcc version 3.3.5 (Gentoo Linux 3.3.5-r1, ssp-3.3.2-3, pie-8.7.7.1)
bash-2.05b$ uname -a
Linux HitSYNC 2.6.10-nitro2 #1 Thu Jan 6 12:22:15 IST 2005 i686 AMD Athlon(tm)
P 3200+ AuthenticAMD GNU/Linux
bash-2.05b$ /bin/bash --version
GNU bash, version 2.05b.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
|
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 00:52
נושא ההודעה:
|
| צפריר : | | strace או ltrace יכולים לעזור לעקוב אחרי פעילות. |
זה מה שפחדתי שתגיד, לצערי אין לי עדין ידע מספק, וחצי מהמידע שמתקבל אני כלל לא מבין, כל שכן מסוגל להפיק תועלת ממנו.
עם gdb אולי עוד אני אצליח להסתדר.
ידוע לך אולי איך אפשר לבנות עם debug info על portage ?
אגב :
| קוד: | bash-2.05b$ /lib/libcrypt.so.1
Segmentation fault
bash-2.05b$ /lib/libcrack.so
Segmentation fault
bash-2.05b$ /lib/libthread_db.so.1
Segmentation fault
|
זה תקין ?
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 17:21
נושא ההודעה:
|
[quote="hq4ever"] | צפריר : | | strace או ltrace יכולים לעזור לעקוב אחרי פעילות. |
איך זה עובד אצלך? אני הרצתי בלינוקס שלי כל אותן הפקודות ולא קיבלתי שום EXIT
 מה יש לך? אולי איזה alias מוזר?
| קוד: | [felixl@localhost ~/scripts]$ echo $SHELL
/bin/tcsh
[felixl@localhost ~/scripts]$ which function
function: Command not found.
[felixl@localhost ~/scripts]$ ls -l | function foo() { echo "foo foo kaka"; }
Badly placed ()'s.
[felixl@localhost ~/scripts]$ ls -l | foo ( ) { echo "foo foo kaka" ; }
Badly placed ()'s.
[felixl@localhost ~/scripts]$ true | foo2() { echo "No X"; }
Badly placed ()'s.
[felixl@localhost ~/scripts]$ sh
sh-2.05b$ ls -l | function foo() { echo "foo foo kaka"; }
sh-2.05b$ ls -l | foo ( ) { echo "foo foo kaka" ; }
sh-2.05b$ true | foo2() { echo "No X"; }
sh-2.05b$ exit
exit
[felixl@localhost ~/scripts]$ csh
[felixl@localhost ~/scripts]$ ls -l | function foo() { echo "foo foo kaka"; }
Badly placed ()'s.
[felixl@localhost ~/scripts]$ exit
exit
[felixl@localhost ~/scripts]$ bash
[felixl@localhost scripts]$ ls -l | function foo() { echo "foo foo kaka"; }
[felixl@localhost scripts]$ ls -l | foo() { echo "foo foo kaka"; }
[felixl@localhost scripts]$ exit
|
כמובן כל פקודות "exit" הקלדתי לבד.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 17:43
נושא ההודעה:
|
|
התחביר הזה הוא של bourne shell ותואמיו (כגון bash). ל־tcsh יש תחביר שונה.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 18:00
נושא ההודעה: זה לא משנה
|
| צפריר : | | התחביר הזה הוא של bourne shell ותואמיו (כגון bash). ל־tcsh יש תחביר שונה. |
אתא יכול לראות שהרצתי בכל מיני shells - זה מגיב או לא עושה כלום, אבל לפחות לא נופל!
ניסיון שלי אומר שלפעמים אנשים משחקים עים cshrc או קבצים דומים מבלי לבדוק ולגבות. אז כששינוי כזה מתחיל להפריע לא יודעים איך זה קרה...
אני ממליץ לבדוק שינוים אחרונים בקבצי קונפיגורציה של shell.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 19:38
נושא ההודעה:
|
אני בהגדרות הפצה מינימליות, וזאת _בשביל_ לפסול את האפשרות שזה משהו שאני עשיתי.
האם יש שם משהו שעדין משהו נראה לך חשוד ?
| קוד: | bash-2.05b$ cat /etc/skel/.bash_profile
# /etc/skel/.bash_profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bash_profile,v 1.10 2002/11/18 19:39:22 azarah Exp $
#This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc
|
| קוד: |
bash-2.05b$ cat /etc/skel/.bashrc
# /etc/skel/.bashrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $
# This file is sourced by all *interactive* bash shells on startup. This
# file *should generate no output* or it will break the scp and rcp commands.
# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac
##uncomment the following to activate bash-completion:
#[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
|
| קוד: | bash-2.05b$ cat /home/hq4ever/.bashrc
# /etc/skel/.bashrc:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $
# This file is sourced by all *interactive* bash shells on startup. This
# file *should generate no output* or it will break the scp and rcp commands.
# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`
alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
# Change the window title of X terminals
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'
;;
esac
##uncomment the following to activate bash-completion:
#[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
|
| קוד: |
bash-2.05b$ cat /home/hq4ever/.bash_profile
# /etc/skel/.bash_profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bash_profile,v 1.10 2002/11/18 19:39:22 azarah Exp $
#This file is sourced by bash when you log in interactively.
[ -f ~/.bashrc ] && . ~/.bashrc
|
| קוד: |
bash-2.05b$ cat /etc/profile
# /etc/profile:
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21:23:18 azarah Exp $
if [ -e "/etc/profile.env" ]
then
. /etc/profile.env
fi
# 077 would be more secure, but 022 is generally quite realistic
umask 022
if [ `/usr/bin/whoami` = 'root' ]
then
# Do not set PS1 for dumb terminals
if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
then
export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
# Do not set PS1 for dumb terminals
if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ]
then
export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
fi
export PATH="/bin:/usr/bin:${PATH}"
fi
unset ROOTPATH
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]
then
export INPUTRC="/etc/inputrc"
fi
# Extract the value of EDITOR
[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"
[ -z "$EDITOR" ] && EDITOR="/bin/nano"
export EDITOR
|
| קוד: |
bash-2.05b$ cat /etc/profile.env
# THIS FILE IS AUTOMATICALLY GENERATED BY env-update.
# DO NOT EDIT THIS FILE. CHANGES TO STARTUP PROFILES
# GO INTO /etc/profile NOT /etc/profile.env
export LESS='-R'
export MOZILLA_FIVE_HOME='/usr/lib/mozilla'
export GCC_SPECS=''
export OPENGL_PROFILE='xorg-x11'
export PAGER='/usr/bin/less'
export QMAKESPEC='linux-g++'
export INFODIR='/usr/share/info'
export KDE_MALLOC='1'
export CVS_RSH='ssh'
export JDK_HOME='/opt/blackdown-jdk-1.4.2.01'
export XINITRC='/etc/X11/xinit/xinitrc'
export GDK_USE_XFT='1'
export ANT_HOME='/usr/share/ant-core'
export ROOTPATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:
/opt/blackdown-jdk-1.4.2.01/bin:/opt/blackdown-jdk-1.4.2.01/jre/bin:
/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin'
export QTDIR='/usr/qt/3'
export G_BROKEN_FILENAMES='1'
export CONFIG_PROTECT='/usr/lib/mozilla/defaults/pref /usr/lib/X11/xkb /usr/kde/3.3/share/config /usr/kde/3.3/env /usr/kde/3.3/shutdown /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config'
export KDEDIRS='/usr'
export CLASSPATH='.'
export CONFIG_PROTECT_MASK='/etc/gconf /etc/terminfo'
export HOSTNAME='HitSYNC'
export LESSOPEN='|lesspipe.sh %s'
export INFOPATH='/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/info:/usr/share/info/emacs-21'
export PATH='/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3.5:/opt/blackdown-jdk-1.4.2.01/bin:
/opt/blackdown-jdk-1.4.2.01/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin'
export MANPATH='/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man:
/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3.5/man:
:/opt/blackdown-jdk-1.4.2.01/man:/usr/qt/3/doc/man:/opt/blackdown-jdk-1.4.2.01/man:/usr/qt/3/doc/man'
export KDEDIR='/usr/kde/3.3'
export JAVA_HOME='/opt/blackdown-jdk-1.4.2.01'
export JAVAC='/opt/blackdown-jdk-1.4.2.01/bin/javac'
|
| קוד: | bash-2.05b$ cat /etc/rc.conf
# /etc/rc.conf: Global startup script configuration settings
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/rc.conf,v 1.22 2003/10/21 06:09:42 vapier Exp
$
# Use KEYMAP to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/keymaps to choose from. This setting is used by the
# /etc/init.d/keymaps script.
KEYMAP="us"
# Should we first load the 'windowkeys' console keymap? Most x86 users will
# say "yes" here. Note that non-x86 users should leave it as "no".
SET_WINDOWKEYS="no"
# The maps to load for extended keyboards. Most users will leave this as is.
EXTENDED_KEYMAPS=
#EXTENDED_KEYMAPS="backspace keypad"
# CONSOLEFONT specifies the default font that you'd like Linux to use on the
# console. You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
# not want to use it, run "rc-update del consolefont" as root).
CONSOLEFONT="default8x16"
# CONSOLETRANSALTION is the charset map file to use. Leave commented to use
# the default one. Have a look in /usr/share/consoletrans for a selection of
# map files you can use.
#CONSOLETRANSLATION="8859-1_to_uni"
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time). If your clock is set to the local time, then set CLOCK
# to "local". This setting is used by the /etc/init.d/clock script.
CLOCK="UTC"
# Set EDITOR to your preferred editor.
#EDITOR="/bin/nano"
EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"
# Set PROTOCOLS to the protocols that you plan to use. Gentoo Linux will only
# enable module auto-loading for these protocols, eliminating annoying module
# not found errors.
#
# NOTE: Do NOT uncomment the next lines, but add them to 'PROTOCOLS=...' line!!
#
# Num Protocol
# 1: Unix
# 2: IPv4
# 3: Amateur Radio AX.25
# 4: IPX
# 5: DDP / appletalk
# 6: Amateur Radio NET/ROM
# 9: X.25
# 10: IPv6
# 11: ROSE / Amateur Radio X.25 PLP
# 19: Acorn Econet
# Most users want this:
PROTOCOLS="1 2"
#For IPv6 support:
#PROTOCOLS="1 2 10"
# What display manager do you use ? [ xdm | gdm | kdm | entrance ]
#DISPLAYMANAGER="xdm"
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts is smart enouth to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enligtenment" can also work. This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE: 1) this behaviour is overridden when a ~/.xinitrc exists, and startx
# is called.
# 2) even if a ~/.xsession exist, if XSESSION can be resolved, it will
# be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps
XSESSION="xfce-4"
|
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 20:16
נושא ההודעה:
|
|
לא נראה שזה נוצר כתוצאה משינוי מקומי, כי התופעה משתחזרת גם אצלי.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 20:24
נושא ההודעה:
|
| צפריר : | | לא נראה שזה נוצר כתוצאה משינוי מקומי, כי התופעה משתחזרת גם אצלי. |
או, זה חדשות טובות (בערך  )
צפריר, האם הגרסאות שלך משתוות לאלו שמותקנות אצלי ?
http://whatsup.org.il/index.php?name=PNphpBB2&file=viewtopic&p=139224#139224 "
|
|
|
| חזרה לתוכן הדיון |

פורסם: 04/04/2005 - 22:14
נושא ההודעה:
|
כפי שכתבתי קודם, זה קורה גם אצלי, על debian sarge. פרטים נוספים:
| ציטוט: |
$ bash --version
GNU bash, version 2.05b.0(1)-release (i386-pc-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
$ uname -a
Linux venus 2.4.27-1-386 #1 Wed Dec 1 19:43:08 JST 2004 i686 GNU/Linux
$ gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-8)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
| חזרה לתוכן הדיון |

פורסם: 05/04/2005 - 00:47
נושא ההודעה:
|
ניסיתי להריץ כמה וואריאציות שונות של הקוד על גרסאות BASH שונות ולהלן התוצאות
בהתחלה על לינוקס ללא פונקציות מוגדרות מראש... הפקודה עושה EXIT...
אבל אם אני מגדיר פונקציה
| קוד: | [root@gilifw root]# su -
[root@gilifw root]# bash
[root@gilifw root]# bash
[root@gilifw root]# foo
bash: foo: command not found
[root@gilifw root]# foo() { echo gggggg; }
[root@gilifw root]# foo
gggggg
[root@gilifw root]# echo tttt | foo() { echo gggggg; }
[root@gilifw root]# echo STAM
STAM
[root@gilifw root]#
[root@gilifw root]# foo
gggggg
[root@gilifw root]# echo tttt | foo() { echo gggggg; }
[root@gilifw root]# bash: child setpgid (13304 to 13303): Operation not permitted
|
אגב, זה קורה גם אם לא מפעילים את הפונקציה...
אם אני לא מפעיל את BASH כמה פעמים זה יוצא "כרגיל"...
יכול להיות שזו הדרך המוזרה של BASH להיתמודד על PIPE מוזר?
אולי פקודה אחת ניגמרת לפני השניה וBASH לא מודע אליה?
| קוד: | | echo tttt | foo() { echo gggggg; } |
על לינוקס (RH8) נותן
| קוד: | | bash: child setpgid (12740 to 12732): Operation not permitted |
על SUN
| קוד: | | bash: child setpgid (25730 to 25726): Not owner |
די דומה...
ועל DIGITAL... כלום...
ולשאלת השאלות, איך, לכול השדים והרוחות עלית על זה?!
גילי
|
|
|
| חזרה לתוכן הדיון |

פורסם: 08/04/2005 - 22:09
נושא ההודעה:
|
טוב אוקי, נגמרו לי הרעיונות.
זה לא גם קרנל (ניסיתי 2.4), זה לא הגדרות משתמש משונות, זה לא קימפול אגרסיבי, זה אפילו לא rootkit.
אאה זה גם לא race condition (עד כמה שאני בעל כישורים לבדוק זאת).
אני פשוט לא יודע, אולי כך זה תוכנן במקור ?
| ציטוט: | ולשאלת השאלות, איך, לכול השדים והרוחות עלית על זה?!
גילי
|
לא זוכר
באמת, אני כבר שכחתי איפה הייתי צריך את זה בקוד.
אני מניח שיש לי מומחיות במציאת באגים חסרי תועלת (אל תשאל מה היה כשהייתי עובד על MS, אוף...)
ניחא, אתה רוצה באמת לצחוק? התוכנית הראשונה שכתבתי ב-C (טוב נו השניה, אחרי hello world) גרמה למהדר להתרסק (borland אם אני זוכר נכון) כך שהיה צורך להתקין אותו מחדש, אחרת הוא פשוט סירב לקמפל... (נו, אתה יודע : מזל של מתחילים).
-----
למישהו יש אולי עוד רעיונות ?
והאם אתם חושבים שזה מצדיק התבכיינות אצל bug-bash at gnu.org, קרי דיווח על באג?
שבת שלום,
מקסים.
|
|
|
| חזרה לתוכן הדיון |

פורסם: 11/04/2005 - 15:46
נושא ההודעה:
|
| hq4ever : |
למישהו יש אולי עוד רעיונות ?
והאם אתם חושבים שזה מצדיק התבכיינות אצל bug-bash at gnu.org, קרי דיווח על באג?
מקסים. |
עד כמה שראיתי, כולם אומרים שזה מן באג, ואף אחד לא ממש רצה לדווח עליו כי הוא "דבילי" לטענתם....
נסה, הכי הרבה יחזירו לך תשובה מנומסת בסיגנון "leave me in your mother" ....
גילי
|
|
|
| חזרה לתוכן הדיון |

פורסם: 13/04/2005 - 01:51
נושא ההודעה:
|
|
משתחזר אצלי על bash 3.0. עם ההודעות המוזרות על setpgid. בהחלט ראוי לדיווח, לדעתי.
|
|
|
| חזרה לתוכן הדיון |
|
|