Skip to content

Commit

Permalink
Use -ignorestderr with exec of cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Feb 16, 2017
1 parent 5c57e5b commit 55c3b2c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/port1.0/portutil.tcl
Expand Up @@ -1022,10 +1022,8 @@ proc reinplace {args} {
}
close $tmpfd

if {!$quiet} {
if {![catch {exec cmp -s $file $tmpfile}]} {
ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]"
}
if {!$quiet && ![catch {exec -ignorestderr cmp -s $file $tmpfile}]} {
ui_warn "[format [msgcat::mc "reinplace %1\$s didn't change anything in %2\$s"] $pattern $file]"
}

set attributes [file attributes $file]
Expand Down

0 comments on commit 55c3b2c

Please sign in to comment.