Allow user and group patterns to contain . and @, but only groups start with @

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Ensure stdout/stderr/stdin are always restored correctly.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Instead of mangling stdin and stdout, pass --output for output file with a /dev/fd/X argument and use /dev/fd/X as the file for input. This is important to make the GnuPG agent work better, as gpg disables some pinentry curses functionality if stdin/stdout are overidden.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Documentation/help cleanup.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Clean up GPG debug output.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Cleanup handling of arg handling.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Do not try to read non-empty files.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
More documentation.

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Ignore vim editor backups.
Merge pull request #4 from robbat2/master

Lots of small improvements