Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proc returned from Proc::Asyn.start does not have correct .command #5695

Closed
p6rt opened this issue Sep 26, 2016 · 3 comments
Closed

Proc returned from Proc::Asyn.start does not have correct .command #5695

p6rt opened this issue Sep 26, 2016 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Sep 26, 2016

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

Searchable as RT129362$

@p6rt
Copy link
Author

p6rt commented Sep 26, 2016

From @zoffixznet

# I have the fix; filing for records

The `.command` attribute that was semi-recently added to Proc[^1] is not populated for the Proc returned from the .start. Not only is this inconsistent, it also produces warnings when exception for failed Procs gets printed​:

zoffix@​leliana​:~/CPANPRC/rakudo$ ./perl6 -e 'say .command given await Proc​::Async.new("./perl6", "-e", "say q|hi|").start'
hi
[]
zoffix@​leliana​:~/CPANPRC/rakudo$ ./perl6 -e 'await Proc​::Async.new("false").start'
Use of uninitialized value @​!command of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to something meaningful.
  in block <unit> at -e line 1
The spawned command '' exited unsuccessfully (exit code​: 1)
  in block <unit> at -e line 1

[1] rakudo/rakudo@c4fd9f5

@p6rt
Copy link
Author

p6rt commented Sep 26, 2016

From @zoffixznet

Fixed in rakudo/rakudo@6974b8bf5c
Tests added in Raku/roast@8e1a1cc7d9

On Mon Sep 26 10​:00​:31 2016, cpan@​zoffix.com wrote​:

# I have the fix; filing for records

The `.command` attribute that was semi-recently added to Proc[^1] is
not populated for the Proc returned from the .start. Not only is this
inconsistent, it also produces warnings when exception for failed
Procs gets printed​:

zoffix@​leliana​:~/CPANPRC/rakudo$ ./perl6 -e 'say .command given await
Proc​::Async.new("./perl6", "-e", "say q|hi|").start'
hi
[]
zoffix@​leliana​:~/CPANPRC/rakudo$ ./perl6 -e 'await
Proc​::Async.new("false").start'
Use of uninitialized value @​!command of type Any in string context.
Methods .^name, .perl, .gist, or .say can be used to stringify it to
something meaningful.
in block <unit> at -e line 1
The spawned command '' exited unsuccessfully (exit code​: 1)
in block <unit> at -e line 1

[1]
rakudo/rakudo@c4fd9f5

@p6rt
Copy link
Author

p6rt commented Sep 26, 2016

@zoffixznet - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Sep 26, 2016
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant