author | Linus Torvalds <torvalds@osdl.org> | |
Fri, 21 Apr 2006 19:25:13 +0000 (12:25 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 21 Apr 2006 20:00:10 +0000 (13:00 -0700) | ||
commit | 34fd1c9ac5845d541e3196983df7f993e751b544 | |
tree | e02022fb81d410dd0d897888fbafb5a0b1df1603 | tree | snapshot |
parent | 0dec30b9788b12fdae5d5b69fc366a28bb688d80 | commit | diff |
git-log produces no output
When $PAGER is set to 'less -i', we used to fail because we
assumed the $PAGER is a command and simply exec'ed it.
Try exec first, and then run it through shell if it fails. This
allows even funkier PAGERs like these ;-):
PAGER='sed -e "s/^/`date`: /" | more'
PAGER='contrib/colordiff.perl | less -RS'
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
When $PAGER is set to 'less -i', we used to fail because we
assumed the $PAGER is a command and simply exec'ed it.
Try exec first, and then run it through shell if it fails. This
allows even funkier PAGERs like these ;-):
PAGER='sed -e "s/^/`date`: /" | more'
PAGER='contrib/colordiff.perl | less -RS'
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
pager.c | diff | blob | history |