diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb index a1bde5c4d7..ed088f0e8d 100644 --- a/Library/Homebrew/cmd/list.rb +++ b/Library/Homebrew/cmd/list.rb @@ -71,7 +71,7 @@ module Homebrew safe_system "ls", *ARGV.options_only << HOMEBREW_CELLAR end elsif args.verbose? || !$stdout.tty? - safe_system "find", *ARGV.kegs.map(&:to_s) + %w[-not -type d -print] + system_command! "find", args: ARGV.kegs.map(&:to_s) + %w[-not -type d -print], print_stdout: true else ARGV.kegs.each { |keg| PrettyListing.new keg } end