home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl502b.zip
/
OS2
/
contrib
< prev
next >
Wrap
Text File
|
1995-04-18
|
3KB
|
84 lines
From math.ohio-state.edu!ilya Mon Dec 26 23:57:51 1994 remote from ananke
Received: from delos by ananke.s.bawue.de (UUPC/extended 1.12j) with UUCP
for ak; Mon, 26 Dec 1994 23:57:51 +0100
Received: from monk.mps.ohio-state.edu by delos.s.bawue.de with smtp
(Smail3.1.28.1 #3) id m0rM7QX-000BHXC; Mon, 26 Dec 94 05:52 MET
Received: (from ilya@localhost) by monk.mps.ohio-state.edu (8.6.9/8.6.9) id XAA08584 for ak@ananke.s.bawue.de; Sun, 25 Dec 1994 23:54:23 -0500
From: Ilya Zakharevich <ilya@math.ohio-state.edu>
Message-Id: <199412260454.XAA08584@monk.mps.ohio-state.edu>
Subject: Re: perl5/os2
To: ak@ananke.s.bawue.de (Andreas Kaiser)
Date: Sun, 25 Dec 1994 23:54:23 -0500 (EST)
In-Reply-To: <2ef48d8d.ananke@ananke.s.bawue.de> from "Andreas Kaiser" at Dec 18, 94 08:29:17 pm
X-Mailer: ELM [version 2.4 PL24]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 1926
Status: RO
>
> > F:\ckermit\get\perl5os2\os2>perl5 -de 0
> > Out of memory!
>
> I did not test the Perl debugger before. Right today I did. Same here.
> You seem to have a lot of patience (or not enough paging space ;-).
>
> Fixed now (-c "/dev/con" now returns true). As an interim fix, edit
> perldb.pl and unconditionally set $console to "/dev/con".
>
> > By the way, probably you do know: gdb can work inside emacs, other
> > programs do not (in OS/2). Probably there is some hack in gdb to do
> > it. Is it managable to do the same with perldb?
>
> I don't know. I rarely use emacs, ask the "emacs community".
>
> Gruss, Andreas Kaiser
>
My patch follows. As writer of PMEmacs says, there is no way to send
output to emacs if a program is executed "in the buffer", but there
was redirection on the command line. However, if there is no
redirection, then the only way is to use STDOUT and STDIN. Moreover,
my patch hase a slightly better chance of making it to the standard
distribution.
*** F:/ckermit/get/lib/perl5db.pl Tue Oct 11 08:36:22 1994
--- perl5db.pl Wed Dec 21 11:15:38 1994
***************
*** 29,34 ****
--- 29,46 ----
$console = "sys\$command";
$rcfile="perldb.ini";
}
+ # Is Perl being run from Emacs?
+ $emacs = $main::ARGV[0] eq '-emacs';
+ shift(@main::ARGV) if $emacs;
+
+ # Around a bug:
+ if (defined $ENV{'OS2_SHELL'}) { # In OS/2
+ if ($emacs) {
+ $console = undef;
+ } else {
+ $console = "/dev/con";
+ }
+ }
open(IN, "<$console") || open(IN, "<&STDIN"); # so we don't dingle stdin
open(OUT,">$console") || open(OUT, ">&STDERR")
***************
*** 38,47 ****
select(STDOUT);
$| = 1; # for real STDOUT
$sub = '';
-
- # Is Perl being run from Emacs?
- $emacs = $main::ARGV[0] eq '-emacs';
- shift(@main::ARGV) if $emacs;
$header =~ s/.Header: ([^,]+),v(\s+\S+\s+\S+).*$/$1$2/;
print OUT "\nLoading DB routines from $header\n";
--- 50,55 ----