Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.85k stars 527 forks source link

Can't set ENV{PATH} in debugger #1198

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

Migrated from rt.perl.org#2168 (status was 'resolved')

Searchable as RT2168$

p5pRT commented 24 years ago

From sbeck@cise.ufl.edu

Created by sbeck@cise.ufl.edu

Whenever I run a script in the debugger which sets the path\, the debugger hangs​:

  % perl -de 0   DB\<1> $ENV{PATH}="/bin​:/usr/bin​:/usr/local/bin";

and it hangs. It runs fine when run not in the debugger​:

  % perl -e '$ENV{PATH}="/bin​:/usr/bin​:/usr/local/bin";'

Perl Info ``` Site configuration information for perl 5.00503: Configured by sbeck at Thu Jan 13 11:17:25 EST 2000. Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=solaris, osvers=2.6, archname=sun4-solaris-thread uname='sunos cave 5.6 generic_105181-17 sun4u sparc sunw,ultra-2 ' hint=recommended, useposix=true, d_sigaction=define usethreads=define useperlio=undef d_sfio=undef Compiler: cc='cc', optimize='-xO4', gccversion= cppflags='-D_REENTRANT -I/usr/local/include' ccflags ='-D_REENTRANT -I/usr/local/include' stdchar='unsigned char', d_stdstdio=define, usevfork=true intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 alignbytes=8, usemymalloc=y, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-lsocket -lnsl -ldl -lm -lpthread -lc -lcrypt libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -R /usr/local/lib/perl5/5.00503/sun4-solaris-thread/CORE' cccdlflags='-KPIC', lddlflags='-G -L/usr/local/lib' Locally applied patches: @INC for perl 5.00503: . /cis/homes/sbeck/perl /usr/local/lib/perl5/5.00503/sun4-solaris-thread /usr/local/lib/perl5/5.00503 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris-thread /usr/local/lib/perl5/site_perl . Environment for perl 5.00503: HOME=/cis/homes/sbeck LANG (unset) LANGUAGE (unset) LC_COLLATE=C LD_LIBRARY_PATH (unset) LOGDIR (unset) PATH=/cis/homes/sbeck/bin:/usr/local/bin:/usr/local/sbin:/usr/local/etc:/usr/opt/SUNWmd/sbin:/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin:/usr/etc:/usr/ucb:. PERLLIB=.:/cis/homes/sbeck/perl PERL_BADLANG (unset) SHELL=/usr/local/bin/zsh ```
p5pRT commented 24 years ago

From [Unknown Contact. See original ticket]

sbeck@​cise.ufl.edu writes​:

Whenever I run a script in the debugger which sets the path\, the debugger hangs​:

% perl -de 0 DB\<1> $ENV{PATH}="/bin​:/usr/bin​:/usr/local/bin";

and it hangs.

Like what? No DB\<2>? Or what?

I think you do not have Term​::ReadKey installed\, so that calls to stty are used by Term​::ReadLine.

Ilya