Module: perl5db.pl
Description
Accidentally entering a line range with one or more periods on a list command causes the debugger to produce anomalous line numbers
Steps to Reproduce
perl -d
any script.l 1.10
.l
command.l 1.2.3
, the debugger will list line 1 as line 1.2.3.l 127.0.0.1
will list line 127 as 127.0.0.1 ...
.l
commands will not show decimal points, so the logic is detecting that floating point numbers with no decimals can be displayed as integersExpected behavior
The debugger should either reject numbers containing periods on a list command; automatically truncate them to integers (probably the best option); or interpret the first .
as a comma, then truncate anything after a second .
, and print the resulting range of lines.
Perl configuration
# perl -V output goes here
Summary of my perl5 (revision 5 version 38 subversion 0) configuration:
Platform:
osname=darwin
osvers=22.6.0
archname=darwin-2level
uname='darwin tekili-li.local 22.6.0 darwin kernel version 22.6.0: wed jul 5 22:22:05 pdt 2023; root:xnu-8796.141.3~6release_arm64_t6000 arm64 '
config_args='-de -Dprefix=/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0 -Aeval:scriptdir=/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0/bin'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='cc'
ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=13.5 -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong'
optimize='-O3'
cppflags='-fno-common -DPERL_DARWIN -mmacosx-version-min=13.5 -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong'
ccversion=''
gccversion='Apple LLVM 14.0.3 (clang-1403.0.22.14.1)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=8
longdblkind=0
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags =' -mmacosx-version-min=13.5 -fstack-protector-strong'
libpth=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.3/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib
libs=
perllibs=
libc=
so=dylib
useshrplib=false
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=bundle
d_dlsymun=undef
ccdlflags=' '
cccdlflags=' '
lddlflags=' -mmacosx-version-min=13.5 -bundle -undefined dynamic_lookup -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_LONG_DOUBLE
HAS_STRTOLD
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_SIPHASH13
PERL_HASH_USE_SBOX32
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_USE_SAFE_PUTENV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Built under darwin
Compiled at Aug 1 2023 20:18:24
%ENV:
PERLBREW_HOME="/Users/joemcmahon/.perlbrew"
PERLBREW_MANPATH="/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0/man"
PERLBREW_PATH="/Users/joemcmahon/perl5/perlbrew/bin:/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0/bin"
PERLBREW_PERL="perl-5.38.0"
PERLBREW_ROOT="/Users/joemcmahon/perl5/perlbrew"
PERLBREW_SHELLRC_VERSION="0.97"
PERLBREW_VERSION="0.97"
@INC:
/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0/darwin-2level
/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0/lib/site_perl/5.38.0
/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0/darwin-2level
/Users/joemcmahon/perl5/perlbrew/perls/perl-5.38.0/lib/5.38.0
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4