$cmd{'cmd'} = var_subst( $cmd{'cmd'}, $1, "" );
}
while ( $cmd{'cmd'} =~ /\$(\w+)/ ) {
$cmd{'cmd'} = var_subst( $cmd{'cmd'}, $1, "" );
}
while ( $cmd{'cmd'} =~ /\$(\w+)/ ) {
print "[Tesh/INFO] Here is the (ignored) command output:\n";
map { print "||$_\n" } @got;
} elsif ( defined( $cmd{'output ignore'} ) ) {
print "[Tesh/INFO] Here is the (ignored) command output:\n";
map { print "||$_\n" } @got;
} elsif ( defined( $cmd{'output ignore'} ) ) {
map { print "$_\n" } split( /\n/, $diff );
if ( $cmd{'sort'} ) {
print "WARNING: Both the observed output and expected output were sorted as requested.\n";
map { print "$_\n" } split( /\n/, $diff );
if ( $cmd{'sort'} ) {
print "WARNING: Both the observed output and expected output were sorted as requested.\n";
# Deal with last command, if any
if ( defined( $cmd{'cmd'} ) ) {
# Deal with last command, if any
if ( defined( $cmd{'cmd'} ) ) {