1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/bin
Maxim Sobolev 41623b2d75 Don't try to decode old-style options if the argv[1] begins with `-' and the
second character represents some option taking an argument. This fixes
problem when ps(1) is invoked for examply as follows:

$ ps -Ufoobar1234

the above example results in option string being interpreted as
-U foobarp1234 - note extra `p'.

Reported by:	Vladimir Sotnikov <vovan@kyivstar.net>
MFC after:	2 weeks
2002-06-20 14:55:53 +00:00
..
cat Use an usage() rather than doing the fprintf inside option parsing. 2002-06-14 09:54:48 +00:00
chflags Reorder for style. 2002-04-28 13:54:45 +00:00
chio Replace use of __progname with the functionally identical and more 2002-03-24 14:56:55 +00:00
chmod Fix warnings inspired by lint, a commercial lint and WARNS=4 2002-02-22 20:45:09 +00:00
cp When -R is not specified, fail to copy the contents of dangling symlinks 2002-06-13 15:48:36 +00:00
csh Use NLSLINKS to setup symbolic links in NLS area 2002-03-04 12:29:21 +00:00
date Use socklen_t for the length of a socket structure instead of `int'. 2002-06-09 04:18:45 +00:00
dd Replace <strings.h> with <string.h>. No functions from the former are 2002-06-09 04:15:40 +00:00
df Unconditionally update the maximum field width statistics when we 2002-05-18 21:10:40 +00:00
domainname Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
echo clarify code: 2002-03-04 05:30:04 +00:00
ed Bogusness may have happened using a variable assignment here before, but 2002-06-20 07:15:55 +00:00
expr mdoc(7) police: markup nits. 2002-05-29 15:18:35 +00:00
getfacl Partially fix (well, work around) warnings inspired by lint, a 2002-02-22 21:02:58 +00:00
hostname Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
kenv mdoc(7) police: punctuation. 2002-05-29 18:52:02 +00:00
kill Markup nits: use the Ar macro when describing the -signal_name and 2002-06-13 08:46:01 +00:00
ln Reject options, handle "--" end-of-options marker in link(1). 2002-05-30 00:57:38 +00:00
ls Ignore empty COLUMNS environment variable. COLUMNS should take precedence 2002-06-04 10:11:29 +00:00
mkdir Use `The .Nm utility' 2002-04-16 20:08:06 +00:00
mv When trying to emulate a cross-device move operation with cp and rm, add 2002-06-16 04:06:58 +00:00
pax more file system > filesystem 2002-05-16 03:51:38 +00:00
ps Don't try to decode old-style options if the argv[1] begins with `-' and the 2002-06-20 14:55:53 +00:00
pwd Back out part of previous commit: make -P the default again until I'm 2002-05-18 13:52:07 +00:00
rcp Use size_t consistently and complete some uncompleted code resulting in a 2002-06-20 06:00:51 +00:00
realpath Check the return value of getcwd() to avoid printf()ing a NULL. Mark 2002-06-09 00:46:24 +00:00
rm Reject options, handle "--" correctly in unlink(1). 2002-05-30 01:05:15 +00:00
rmail Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
rmdir
setfacl Remove extraneous blank line 2002-02-19 02:36:35 +00:00
sh Remove two unused variables. 2002-06-20 05:21:43 +00:00
sleep Sort sections, use Ex macro in Diagnostics section, point out that the first 2002-06-10 09:33:15 +00:00
stty
sync Correct History: sync(8) appeared in V4. 2002-06-03 14:48:33 +00:00
test while i'm breaking stuff, use __dead2 instead of GCC specific __attribute__. 2002-05-11 01:25:54 +00:00
uuidgen mdoc(7) police: kill hard sentence breaks. 2002-05-30 14:10:44 +00:00
Makefile Introduce NO_RCMNDS flag so as to not compile rsh, rlogin, and rcp on will, 2002-04-09 18:25:44 +00:00
Makefile.inc Remove gCC'isms. 2002-05-10 01:48:15 +00:00