--- toast	2005/07/06 06:15:57	1.386
+++ toast	2005/07/18 03:00:47	1.387
@@ -1918,6 +1918,7 @@
   my($result) = `$cmd`;
   open(STDIN, "<&SAVE") || error("restore stdin: $!");
 
+  $result = undeftoempty($result);
   $result =~ s/[\r\n].*//;
   $result =~ s|/+$||;
   emptytoundef($result);