summaryrefslogtreecommitdiff
path: root/doc/misc/eshell.texi
diff options
context:
space:
mode:
authorTassilo Horn <tsdh@gnu.org>2015-04-08 09:57:58 +0200
committerTassilo Horn <tsdh@gnu.org>2015-04-08 09:57:58 +0200
commit1ba357e30518fdcc0b870870152f5434cb2540ba (patch)
treeb1d4e349357ccd0d0136dc80eee9fb55e076c5b8 /doc/misc/eshell.texi
parentba6c32b6decaa2a72a3d5f854efd513e8e82c118 (diff)
downloademacs-1ba357e30518fdcc0b870870152f5434cb2540ba.tar.gz
Add notice to visual commands section
* doc/misc/eshell.texi (Input/Output): Add notice that some tools such as git call less with its -F option which omits pagination if the contents is less than one page long. This interferes with eshell's visual (sub-)commands.
Diffstat (limited to 'doc/misc/eshell.texi')
-rw-r--r--doc/misc/eshell.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi
index 6d57a78d170..4ed894e5a4c 100644
--- a/doc/misc/eshell.texi
+++ b/doc/misc/eshell.texi
@@ -654,6 +654,16 @@ not @samp{git status} -- use @code{eshell-visual-subcommands}; and for
commands that are visual only when passed certain options, use
@code{eshell-visual-options}.
+Caution: Some tools such as Git use the pager @samp{less} by default
+to paginate their output but call it with its @samp{-F} option. This
+option causes @samp{less} to echo the output instead of paginating it
+if the output is less than one page long. This causes undesirable
+behavior if, e.g., @samp{git diff}, is defined as a visual subcommand.
+It'll work if the output is big enough and fail if it is less than one
+page long. If that occurs to you, search for configuration options
+for calling @samp{less} without the @samp{-F} option. For Git, you
+can do that using @samp{git config --global core.pager 'less -+F'}.
+
@section Redirection
Redirection is mostly the same in Eshell as it is in other command
shells. The output redirection operators @code{>} and @code{>>} as