aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsoxdial5
1 files changed, 4 insertions, 1 deletions
diff --git a/soxdial b/soxdial
index 5e6c808..f226847 100755
--- a/soxdial
+++ b/soxdial
@@ -802,7 +802,10 @@ for ($argc = 0; $argc < @ARGV; $argc++) {
}
if(@freqs1) {
push @sox_subcmds, make_sox_subcmd($time_override);
- push @sox_subcmds, silence_subcmd(randomize($intertime));
+ if($argc < $#ARGV) {
+ push @sox_subcmds, silence_subcmd(randomize($intertime))
+ }
+ warn "argc $argc, \$\#ARGV " . $#ARGV . "\n";
} else {
warn "$SELF: no valid digits in dial string.\n" if $verbose;
}