Skip to content

Commit

Permalink
Do not fork PAGER=cat
Browse files Browse the repository at this point in the history
Unless the user has a nonstandard "cat" command that does not
meow like a cat, this should not break anything and would save an
extra pipe.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Apr 16, 2006
1 parent 402461a commit caef71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void setup_pager(void)
return;
if (!pager)
pager = "less";
else if (!*pager)
else if (!*pager || !strcmp(pager, "cat"))
return;

if (pipe(fd) < 0)
Expand Down

0 comments on commit caef71a

Please sign in to comment.