diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-05-23 19:30:43 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-05-23 19:31:24 +0200 |
commit | 573cea299ef15fe0491cfdebfb0a56a67a1020fc (patch) | |
tree | 9b43a7f3db83261f9a428b701affe764b9b6c18a | |
parent | b04cfe2e259f2c48d8b520a3ba644f0e9be7bd46 (diff) |
hashl: Fix filename output (contained escapes meant for stderr)
-rw-r--r-- | Changelog | 1 | ||||
-rwxr-xr-x | bin/hashl | 6 |
2 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,7 @@ git HEAD * Set read size to 0 (zero) to hash whole files + * Fix find-new and find-known output so it can be piped to other commands hashl 1.00 - Wed Nov 02 2011 @@ -139,7 +139,8 @@ sub db_find_new { my ( $file, $path ) = @_; if ( not any { $_->file_in_db($path) } @ehashl ) { - say "\r\e[2K${file}"; + print STDERR "\r\e[2K"; + say $file; } return; @@ -149,7 +150,8 @@ sub db_find_known { my ( $file, $path ) = @_; if ( any { $_->file_in_db($path) } @ehashl ) { - say "\r\e[2K${file}"; + print STDERR "\r\e[2K"; + say $file; } return; |