Thread View: gnu.bash.bug
2 messages
2 total messages
Started by Petri Alhola
Mon, 02 Oct 1989 14:10
Problem with bash functions in 386/ix 2.0.2
Author: Petri Alhola
Date: Mon, 02 Oct 1989 14:10
Date: Mon, 02 Oct 1989 14:10
43 lines
1905 bytes
1905 bytes
i have bash-1.03 running in UInteractive systems 386/ix ver 2.02
that is System V 3.2 in 386 . I have found two problems.
1 - I have shell function
l=() {
ls -CF $*;
}
When i execute it, and when it terminates i got infinite number of
error message Wait: No child process. If i use it with pipe
like l | less . it works fine.
2 - When i am running bash in xterm window i have problems with ls
listings . The xterm works , i have used in many months with
sh and gnu emacs and other programs. The problem is that i am losing
randomly lines !!.
The problem can be in Interactive systems X11.3 xterm also, but only
program that have this problem is bash.
This is actual output from other x-term window.
digiw $ls -l
total 8
-rw-r--r-- 1 petri digiw 356 Aug 11 16:52 Bash_profile
-rw-r--r-- 1 petri digiw 2150 Aug 11 16:52 Bashrc
-rw-r--r-- 1 petri digiw 597 Aug 11 16:53 csh-compat
digiw $ls -l
total 8
digiw $ls -l
total 8
-rw-r--r-- 1 petri digiw 356 Aug 11 16:52 Bash_profile
digiw $
I have used patches from gnu.bash.bug for system V.
If there is others that are portting bash for 386/ix,
please tell your succestions with it. I have not yet analyzed
these problems deeply, but if they are only 386/ix specific
and unknown before this, i can meke more work to finding out the actual
problem.
Petri Alhola
petri@digiw.fi
petri@digiw.UUCP
Re: Problem with bash functions in 386/ix 2.0.2 --> Fixes
Author: Petri Alhola
Date: Tue, 03 Oct 1989 18:35
Date: Tue, 03 Oct 1989 18:35
54 lines
2318 bytes
2318 bytes
In article <923@digiw.UUCP> you write:
>i have bash-1.03 running in Interactive systems 386/ix ver 2.02
>that is System V 3.2 in 386 . I have found two problems.
>
>1 - I have shell function
> l=() {
> ls -CF $*;
> }
> When i execute it, and when it terminates i got infinite number of
> error message Wait: No child process. If i use it with pipe
> like l | less . it works fine.
>
I found that in file nojobs.c there is wait() loop, if it gets
error from waits, it prints it out and then waits again. If
error is No Child Process ,ECHILD it sill tries wait again
infinitely. The fix is that break loop in ECHILD.
here is diff.
*** nojobs.c Mon Oct 2 14:49:17 1989
--- nojobs.c~ Mon Oct 2 14:24:30 1989
***************
*** 221,227 ****
{
if (got_pid < 0 && errno != EINTR)
file_error ("wait");
- if (got_pid < 0 && errno == ECHILD) break;
}
/* Default return value. */
--- 221,226 ----
>2 - When i am running bash in xterm window i have problems with ls
> listings . The xterm works , i have used in many months with
> sh and gnu emacs and other programs. The problem is that i am losing
> randomly lines !!.
> The problem can be in Interactive systems X11.3 xterm also, but only
> program that have this problem is bash.
> This is actual output from other x-term window.
>
The bug was not in xterm , it was in rlogin. The rlogin
lost all lines in buffer when IXON flag was changed by
ioctl call. I do not know does this bug exist in other
rlogins that 386/ix one.
Fix: use stty -ixon in rlogin sessions with 386/ix
After these two fixes bash seems to work fine in 386/ix 2.0
Now i use it in normal use.
Petri Alhola
petri@digiw.fi
petri@digiw.UUCP
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads