You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a chunk of code in lib/FCM/System/CM/Prompt.pm that looks like:
$answer = readline(STDIN);
chomp($answer);
This can sometimes cause an error message:
Use of uninitialized value $answer in scalar chomp
This happens when readline returns undef, and one particular case it sets $! to Resource temporarily unavailable.
This looks like a problem with non-blocking vs blocking STDIN handling, and is common to
other utilities. We can probably check for defined(answer) and exit with a better message.
The text was updated successfully, but these errors were encountered:
We have a chunk of code in
lib/FCM/System/CM/Prompt.pm
that looks like:This can sometimes cause an error message:
This happens when
readline
returnsundef
, and one particular case it sets$!
toResource temporarily unavailable
.This looks like a problem with non-blocking vs blocking STDIN handling, and is common to
other utilities. We can probably check for
defined(answer)
and exit with a better message.The text was updated successfully, but these errors were encountered: