From 10d8fa5ca496d8377b56ba5a081d41fec4497324 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 14 Apr 2024 03:59:58 -0400 Subject: soxdial: don't add silence after last argument. --- soxdial | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3