| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Reported by: tinderbox
|
| |
|
|
|
|
|
|
|
| |
outer if condition)
Reviewed by: se
Approved by: cperciva
|
|
|
|
|
|
|
|
|
| |
o Wrap sentences on to new lines
o Cleanup trailing whitespace
Found with: textproc/igor
MFC after: 1 week
X-MFC-With: r232157
|
|
|
|
|
|
| |
Submitted by: amdmi3
PR: 165431
MFC after: 1 week
|
|
|
|
| |
No actual code changes.
|
|
|
|
|
|
| |
to re-establishment of 64bit arithmetic, but is committed separately, to
not obscure that conversion. This commit does not change the observed
behaviour of expr in any way. Style will be fixed in a follow-up commit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
again. This brings back the behaviour of expr in FreeBSD-4, which had been
reverted due to an assumed incompatbility with POSIX.1 for FreeBSD-5.
This issue has been discussed in the freebsd-standards list, and the
consensus was, that POSIX.1 is in fact not violated by this extension,
since it affects only cases of POSIX undefined behaviour (overflow of
signed long).
Other operating systems did upgrade their versions of expr to support
64bit range, after it had been initially brought to FreeBSD. They have
used it for a decade without problems, meanwhile.
The -e option is retained, but it will only select less strict checking
of numeric parameters (leading white-space, leading "+" are allowed and
skipped, an empty string is considered to represent 0 in numeric context.)
The call of check_utility_compat() as a means of establishing backwards
compatibility with FreeBSD-4 is considered obsolete, but preserved in
this commit. It is expected to be removed in a later revision of this
file.
Reviewed by: bde, das, jilles
MFC after: 2 month (those parts that do not violate POLA)
|
|
|
|
|
|
|
|
|
|
| |
The three examples are better done using sh(1) itself these days.
The example
expr -- "$a" : ".*"
is incorrect in the general case, as "$a" may be an operator.
MFC after: 2 weeks
|
| |
|
|
|
|
| |
Found courtesy of a recursive grep in the wrong directory.
|
|
|
|
| |
Sort standard sections in the (documented) preferred order.
|
|
|
|
| |
header update.
|
| |
|
|
|
|
| |
We have support now that the regular expression routines do.
|
|
|
|
| |
by POSIX.
|
|
|
|
|
|
|
| |
Obsolete WFORMAT= junk also removed where possible.
OK'ed by: obrien
Tested on: sparc64, alpha, i386
|
|
|
|
|
|
|
|
| |
Revert to using the .Tn POSIX and .Tn ANSI instead of \*[Px] and \*[Ai]
strings; using these strings is unsafe in troff mode, as they include a
change in a font size.
Approved by: re
|
|
|
|
| |
Approved by: re
|
|
|
|
|
|
|
|
| |
whether a named utility should behave in FreeBSD 4.x-compatible mode
or in a standard mode (default standard). The configuration is done
malloc(3)-style, with either an environment variable or a symlink.
Update expr(1) to use this new interface.
|
| |
|
|
|
|
| |
and -e reflects the historic behavior of FreeBSD's expr.
|
|
|
|
|
|
| |
is required to be oblivious to overflow and to use the data type `long'.
(Division by zero is undefined in ISO C so it's still OK to check for it
here.) Add a new `-e' flag to get the old, more useful behavior.
|
|
|
|
| |
parsing for compatibility with old implementations.
|
|
|
|
| |
deal with C99 formats.
|
| |
|
| |
|
|
|
|
| |
section somewhat clearer.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- expr must conform to the Utility Syntax Guidelines, so use
getopt() to eat the (non-existent) options.
- Use the Standard type intmax_t for arithmetic.
- If an argument cannot be *completely* converted to an integer, then
it is a string.
Additionally make some style cleanups near the modified lines. This
utility is still not completely style-compliant.
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o gc some #ifdef sun ... #endif code
Approved by: arch@, new style(9)
|
|
|
|
|
|
| |
set WARNS=0.
Reviewed by: mike
|
| |
|
|
|
|
| |
Reviewed by: bde
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
PR: docs/9111
Submitted by: Josh Gilliam <josh@quick.net>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
|
| |
|
| |
|
|
|
|
|
| |
``rm'' -> ``rm -f''
so mv/rm may not ask for confirmation if you are not root
|
| |
|
|
|
|
|
| |
was a valid integer. The actual decision between integer and string
is now context-dependant on the operator being used.
|
|
|
|
|
|
|
|
| |
comparisions have been made as string comparisions, even in cases
where both operands clearly qualified as integers.
The fix is to make the parser properly analyzing whether an operand is
a valid integer or not.
|
|
|
|
| |
Reviewed by: phk
|