Mac OS X doesn't support uname -o. Use uname instead.

I break compatibility with Mac OS X again, that I don't have access
to. Result: Stuff break, and I have to fix it, so it will perhaps
work. At least, I hope it will work.
configure.ac: remove m4_esyscmd_s

m4_esyscmd_s is a macro only available in Autoconf 2.64, which despite
being released in 2009 is not available on a number of build targets for
the project (specifically CentOS/RHEL 6).

ca8e4c08a78 tries to remove the error produced with m4_pattern_allow,
but that just silences the sanity check.

Instead, replace m4_esyscmd_s with m4_esyscmd + manual removal of
newlines.
Move FISH_BUILD_VERSION from osx/config.h to the pbxproj so that we can build with the generated config.h
Fix "." function to not shadow scopes, so the tests pass again. Remove eval's use of "." function.
Actually commit the no-scope-shadowing to . function
Fix #684 by putting newline after $argv

It's rather hacky, but it sort of works. (but then, this makes fish
compare to PHP (but PHP doesn't put that newline), so perhaps I
shouldn't do that - http://git.io/GFurbg)
Initial work towards various IO cleanups with an eye to fixing https://github.com/fish-shell/fish-shell/issues/110
Reenable free_redirected_fds_from_pipes.
Trivial cleanup of a function in proc.cpp
Big fat refactoring of how redirections work. In fish 1.x and 2.0.0, the redirections for a process were flattened into a big list associated with the job, so there was no way to tell which redirections applied to each process. Each process therefore got all the redirections associated with the job. See  https://github.com/fish-shell/fish-shell/issues/877 for how this could manifest.

With this change, jobs only track their block-level redirections. Process level redirections are correctly associated with the process, and at exec time we stitch them together (block, pipe, and process redirects).

This fixes the weird issues where redirects bleed across pipelines (like #877), and also allows us to play with the order in which redirections are applied, since the final list is constructed right before it's needed.  This lets us put pipes after block level redirections but before process level redirections, so that a 2>&1-type redirection gets picked up after the pipe, i.e. it should fix https://github.com/fish-shell/fish-shell/issues/110

This is a significant change. The tests all pass. Cross your fingers.
Replace some #warnings with a comment explaining why the code is OK
Remove grep warning from make target completion

grep was throwing warnings when no Makefile was found

Signed-off-by: lledey <lledey@gmail.com>
Include the autosuggestion in history if it was truncated
https://github.com/fish-shell/fish-shell/issues/650
Put read pipe last so that eval works again. Addresses https://github.com/fish-shell/fish-shell/issues/966
Fix the build on OS X Mavericks
https://github.com/fish-shell/fish-shell/issues/968
configure.ac: don't add RPATH when searching for extra libs

Closes #766
doesn't appear to actually be required, and adding RPATH breaks Debian and OpenSUSE policy
all flames to me
Expand abbreviations at the beginning of commands as discussed in https://github.com/fish-shell/fish-shell/issues/731
Fix "command not found" handler behaviour.
Fix tabs in share/functions/__fish_config_interactive.fish
Fix a C++11 compile error with clang.
https://github.com/mxcl/homebrew/pull/22016#issuecomment-23222977