This can happen if a command (eg passed to debugcmd) has an undef
argument. This turns an undefined warning into an explicit internal
error.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
sub shellquote {
my @out;
local $_;
+ defined or confess 'internal error' foreach @_;
foreach my $a (@_) {
$_ = $a;
if (!length || m{[^-=_./:0-9a-z]}i) {
dgit (3.6~) unstable; urgency=medium
- *
+ Minor improvements:
+ * Call `confess' to print a stack trace when we pass undef to
+ shellquote (eg as a result of debugcmd). Turns an undefined
+ warning into an explicit internal error.
--