From be0bd50bad7f12f75bbd9e79ed6155f35df363d7 Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 28 Jan 2007 00:12:15 +1000 Subject: [PATCH] Remove unneeded code from isatty, fix spelling in docs darcs-hash:20070127141215-ac50b-d15c657b62862841df80c55095a05e9c38086a11.gz --- doc_src/isatty.txt | 2 +- share/functions/isatty.fish | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doc_src/isatty.txt b/doc_src/isatty.txt index cf6cc2ed3..f72e9e128 100644 --- a/doc_src/isatty.txt +++ b/doc_src/isatty.txt @@ -1,4 +1,4 @@ -\section isatty isatty - test if the specidied file descriptor is a tty +\section isatty isatty - test if the specified file descriptor is a tty \subsection isatty-synopsis Synopsis isatty [FILE DESCRIPTOR] diff --git a/share/functions/isatty.fish b/share/functions/isatty.fish index b4c59e292..1603972f1 100644 --- a/share/functions/isatty.fish +++ b/share/functions/isatty.fish @@ -23,7 +23,6 @@ function isatty -d "Tests if a file descriptor is a tty" end end - eval "tty 0>&$fd >/dev/null"; and return 0 + eval "tty 0>&$fd >/dev/null" - return 1 end