Remove unneeded code from isatty, fix spelling in docs

darcs-hash:20070127141215-ac50b-d15c657b62862841df80c55095a05e9c38086a11.gz
This commit is contained in:
axel 2007-01-28 00:12:15 +10:00
parent cab5c63402
commit be0bd50bad
2 changed files with 2 additions and 3 deletions

View file

@ -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
<tt>isatty [FILE DESCRIPTOR]</tt>

View file

@ -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