From 680e2019233c8ed17a62ce2cb2d8308b3593d977 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sat, 5 Sep 2009 20:46:07 +0100 Subject: Fix double newline after Interrupt Seems to be an issue with Ruby system() call doing a double fork.--- bin/brew | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/brew b/bin/brew index cc89e9263..9876c9a99 100755 --- a/bin/brew +++ b/bin/brew @@ -210,7 +210,10 @@ rescue UsageError rescue SystemExit ohai "Kernel.exit" if ARGV.verbose? rescue Interrupt => e - puts # seemingly a newline is typical + # puts # seemingly a newline is typical + # Above is now commented out because the system() call forks and then forks + # again, so there are two of "us" so we get two exceptions raising and thus + # two newlines, which buggers up the shell. FIXME! exit 130 rescue SystemCallError, RuntimeError => e if ARGV.debug? -- cgit v1.2.3