Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 1999 18:04:34 -0800 (PST)
From:      dbushong@CSUA.Berkeley.EDU (David Bushong)
To:        btman@ugcs.caltech.edu (Brian Tiemann)
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Weird perl behavior
Message-ID:  <199902270204.SAA01125@soda.CSUA.Berkeley.EDU>
In-Reply-To: <Pine.BSF.4.05.9902261643500.2687-100000@lionking.org> from Brian Tiemann at "Feb 26, 99 04:46:57 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
This isn't perl.  It's stty.  Do an stty -a, and see that "status" is set to.
For example:

% stty -a
...
cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^H; intr = ^C; kill = ^U; lnext = ^V;
        min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T;
        stop = ^S; susp = ^Z; time = 0; werase = ^W;

Note I have it set to ^T.  So if i run 
% perl
and hit ^T, I get:
load: 0.06  cmd: perl5.00502 21939 [ttyin] 0.00u 0.00s 0% 860k

but of course I could also run cat
% cat
load: 0.07  cmd: cat 21938 [ttyin] 0.00u 0.00s 0% 88k

You must have status bound to whatever backspace is.  To see what backspace
is sending for you, type ^V then backspace (^V means control-V of course).

--David Bushong

> 
> 	Perl seems to be doing some odd things on my 3.1-STABLE box (last 
> built 2/23). Here's a sample script:
> 
> 
> #!/usr/bin/perl
> 
> print "Type: ";
> $input = <STDIN>;
> 
> 
> 	At the prompt, if you hit Backspace, it prints out this line:
> 
> load: 1.14  cmd: perl 83389 [ttyin] 0.00u 0.00s 0% 980k
> 
> 	This doesn't happen on my other box, running 2.2.8-STABLE.
> 	Has anyone else seen this?
> 
> Brian
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902270204.SAA01125>