gugod / gugod/App-perlbrew

Unexpected behavior on Windows Services for Linux

Open
#613 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Perl
Stars
735
Forks
231
PR merge metrics
No merged PRs in 30d

Description

```
sno@AMANA013:~$ perlbrew list
Use of uninitialized value in localtime at /home/sno/perl5/perlbrew/bin/perlbrew line 1915.
sh: 1: /home/sno/perl5/perlbrew/perls/cperl-5.26.2/bin/perl: not found
substr outside of string at /home/sno/perl5/perlbrew/bin/perlbrew line 1898.
Argument "" isn't numeric in sprintf at /home/sno/perl5/perlbrew/bin/perlbrew line 1898.
substr outside of string at /home/sno/perl5/perlbrew/bin/perlbrew line 1898.
Use of uninitialized value in sprintf at /home/sno/perl5/perlbrew/bin/perlbrew line 1898.
perl-5.26.2 (installed on Mon May 14 13:34:39 2018)
cperl-5.26.2 (0.0.0) (installed on Thu Jan 1 01:00:00 1970)
sno@AMANA013:~$ uname -a
Linux AMANA013 4.4.0-17134-Microsoft #1-Microsoft Tue Apr 10 18:04:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
sno@AMANA013:~$ perl -MFile::stat -MData::Dumper -le 'my $executable = "/home/sno/perl5/perlbrew/perls/perl-5.26.2/bin/perl"; print localtime( ( stat $executable )[ 10 ] ); my @s = stat $executable; print Dumper \@s; print localtime 1526297679'
0011070400
$VAR1 = [
bless( [
2,
'48695170971332054',
33261,
2,
1000,
1000,
0,
2033144,
1526297677,
1526297677,
1526297679,
512,
3976
], 'File::stat' )
];

39341314411811331
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `perlbrew list` under Windows Services for Linux and inspect the reported paths in `perlbrew` around lines 1898 and 1915. Compare the `stat` and `localtime` values shown in the report; done means the command no longer emits the reported warnings and displays valid installation information.

Written by the indexing model from the issue text.

Assessment

Tech stack
perl
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.