dagolden / Capture-Tiny

(Perl) Capture STDOUT and STDERR from Perl, XS or external programs
http://search.cpan.org/dist/Capture-Tiny/
39 stars 19 forks source link

capture exec leaves files in /tmp #50

Open ShyLionTjmn opened 7 years ago

ShyLionTjmn commented 7 years ago

Not sure if it is a bug, because exec does not return to perl, but at least it is worth mentioning in documentation.

Running: perl -e 'use Capture::Tiny qw(:all); capture { exec( ("ls","-l","/tmp") ) };' will leave captured output in temporary files.