summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2017-01-12Fix setting the palette of aixterm colours (90-97).Nicholas Marriott
2017-01-11Be less aggressive about turning margins off.Nicholas Marriott
2017-01-11Add some missing special keys to key_string_lookup_key, fix a mouseNicholas Marriott
check in server_client_handle_key, and tweak a comment.
2017-01-11Do text production for .Bt, .Ex, .Rv, .Ud at the validation stageIngo Schwarze
rather than in the formatters. Use NODE_NOSRC flag for .Lb and NODE_NOSRC and NODE_NOPRT for .St. Results in a more rigorous syntax tree and in 135 lines less code. This work was triggered by a question from Abhinav Upadhyay <er dot abhinav dot upadhyay at gmail dot com> (NetBSD) on discuss@.
2017-01-11Add a format for terminal type.Nicholas Marriott
2017-01-11Use a macro for looking up tty types.Nicholas Marriott
2017-01-11Some tidying and tweaks to options code.Nicholas Marriott
2017-01-11Add "support" for AArch64 to make it compile.Patrick Wildt
2017-01-11Don't attempt to read .netrc when we already force anonymous FTP (-a).Vadim Zhukov
Patch from Anton Lindqvist via tech@, thanks! okay deraadt@
2017-01-10Use new NODE_NOSRC and NODE_NOPRT flags for .Bx and .At.Ingo Schwarze
More rigorous AST and 40 lines less code.
2017-01-10For the .Ux/.Ox family of macros, do text production at the validationIngo Schwarze
stage rather than in each and every individual formatter, using the new NODE_NOSRC flag. More rigorous and also ten lines less code.
2017-01-10Minor tidying in a couple of commands.Nicholas Marriott
2017-01-10Need to escape ; twice because the command list parser will eat one,Nicholas Marriott
reported by Theo Buehler.
2017-01-10Pledge more strictly. This is only enabled on the ramdisk version of theTheo de Raadt
ftp(1) client, which operates only in URL mode. Not willing to spend the time tracking piles of global variables for sub-modes, and finding all the pledge interactions. Would rather have the install media ftp(1) as safe as possible, immediately. ok tb jca
2017-01-10simplify; NODE_ENDED does no harm in man(7)Ingo Schwarze
2017-01-10unify names of AST node flags; no change of cpp outputIngo Schwarze
2017-01-10Introduce flags NODE_NOSRC and NODE_NOPRT for AST nodes.Ingo Schwarze
Use them to mark generated nodes and nodes that shall not produce output. Let -Ttree output mode display these new flags. Use NODE_NOSRC for .Ar, .Mt, and .Pa default arguments. Use NODE_NOPRT for .Dd, .Dt, and .Os. These will help to make handling of text production macros more rigorous.
2017-01-10Quote backslash as well for %%%.Nicholas Marriott
2017-01-10Some manpage fixes: rephrase a convoluted sentence, make the names ofNicholas Marriott
some keys more standard, and use Ql instead of Dq.
2017-01-10avoid unneccessary markup; tweaked and ok nicmJason McIntyre
2017-01-09Add %if/%endif for conditionals when parsing configuration files, theNicholas Marriott
argument is a format (the new == and != are useful).
2017-01-09Add simple comparisons in formats: #{==:a,b} and #{!=:a,b} ("a" and "b"Nicholas Marriott
are expanded so can compare formats). And expand the condition to #{?a,b,c} (the "a" part) if it doesn't work as a simple lookup. Also add FORMAT_NOJOBS flag to disable jobs in a format.
2017-01-09source-file -q needs to apply to glob(3) too.Nicholas Marriott
2017-01-09Run the source-file pattern through glob(3).Nicholas Marriott
2017-01-09Use stdout rather than stdin for controlling the terminalIngo Schwarze
such that "cat foo.mdoc | man -l" works. Issue reported by Christian Neukirchen <chneukirchen at gmail dot com> and also tested by him on Void Linux with both glibc and musl. The patch makes sense to millert@.
2017-01-09The .No macro is not supposed to produce fixed-width font, it is notIngo Schwarze
the same as .Li, so don't use <code>. Bug reported by <Anton dot Lindqvist at gmail dot com> on tech@.
2017-01-09Warnings and errors that occur during mdoc_validate()Ingo Schwarze
or during man_validate() have to affect the mandoc(1) EXIT STATUS. Many thanks to <Yuri dot Pankov at gmail dot com> (illumos developer) for reporting this regression.
2017-01-08Indentation must be measured in units of the surrounding text,Ingo Schwarze
not in units of the contained text. Consequently, "display" and "lit" class tags must not be on the same element: First, "display" must set up the indentation, still using the outer units, and only after that, "lit" may change the font. This fixes .Bd -literal which got the wrong indentation. Bug reported by tb@.
2017-01-08Fix an assertion failure caused by \z\[u00FF] with -Tps/-Tpdf.Ingo Schwarze
Reported by jsg@ after an afl(1) run long ago.
2017-01-08style: missing blank between case statement and label;Ingo Schwarze
from Tiago Silva <tiagofilipesilva at icloud dot com> long ago
2017-01-08Tolerate bare tabs in SYNOPSIS .Cd for now.Ingo Schwarze
It's used in half a dozen pages. Even though i have been thinking about it for years, i still can't suggest anything better. The false positives are annoying.
2017-01-08Stricter validation of the NAME section, in particular:Ingo Schwarze
- require a comma between names - reject all other text nodes - reject all empty Nm below NAME, not only in the leading position - reject Nm after Nd
2017-01-07Add note about ccc and initc so people who want it can see it isNicholas Marriott
possible.
2017-01-07Add support for the OSC 4 and OSC 104 palette setting escape sequences,Nicholas Marriott
from S Gilles.
2017-01-07-#endif /* !SMALL */Theo Buehler
+#endif /* !NOSSL */
2017-01-06keep the tokens list sorted;Jason McIntyre
2017-01-06Nits found with clang.Nicholas Marriott
2017-01-06Incremental search in copy mode (on for emacs keys by default) - muchNicholas Marriott
the same as normal searching but updates the cursor position and marked search terms as you type. C-r and C-s in the prompt repeat the search, once finished searching (with Enter), N and n work as before.
2017-01-06fix previousDamien Miller
2017-01-06show a useful error message when included config files can't beDamien Miller
opened; bz#2653, ok dtucker@
2017-01-06sshd_config is documented to set GSSAPIStrictAcceptorCheck=yes byDamien Miller
default, so actually make it do this. bz#2637 ok dtucker
2017-01-06Avoid confusing error message when attempting to use ssh-keyscan builtDamien Miller
without SSH protocol v.1 to scan for v.1 keys; bz#2583
2017-01-06Re-add '%k' token for AuthorizedKeysCommand which was lost during theDarren Tucker
re-org in rev 1.235. bz#2656, from jboning at gmail.com.
2017-01-06sort options list; the same as jmc@ did in man.1 rev. 1.18Ingo Schwarze
2017-01-05sort options list;Jason McIntyre
2017-01-05Highlight all occurrences of search string after searching in copy mode.Nicholas Marriott
2017-01-04Avoid an out of bounds read when the environment variable LESSBINFMTTodd C. Miller
is set to "*". Patch from Tobias Stoeckmann. OK tb@
2017-01-04Fix a crash when "sort -m" is given no files. From Julien Ramseier.Todd C. Miller
2017-01-04If find(1) may end up calling execve(2), it needs "proc exec" in additionTheo Buehler
to its other promises. Previously, find ran unpledged if the -exec{,dir} or -ok primaries were specified: the tame(2) calls for find(1) were added a few days before the "exec" promise was implemented and these code paths were never revisited. ok millert
2017-01-04unbreak Unix domain socket forwarding for root; ok markus@Damien Miller