Skip to content

Commit

Permalink
Use -ignorestderr with exec of cmp
Browse files Browse the repository at this point in the history
(cherry picked from commit 55c3b2c)
  • Loading branch information
jmroot committed Feb 17, 2017
1 parent 98d55a8 commit ce493cb
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 ce493cb

Please sign in to comment.