1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/bin
schwarze 0ac57757bc When evaluating an arithmetical expression, for example inside $(()),
never do substitution (neither parameter, nor command, nor arithmetic,
nor tilde substitution) on the values of any variables encountered
inside the expression, but do recursively perform arithmetical
evaluation of subexpressions as required.  This makes behaviour
more consistent, without hindering any behaviour promised in the
manual page.

A quirk originally reported by Andy Chu <andychup at gmail dot com>
was that in the past, when encountering an array index, the shell
would not only do evaluation, but also substitution on the array
index, even though substitution would not be done on the expression
in general.

tobias@ contributed to initial efforts of understanding the quirk.
patch tested in a bulk build by naddy@
"please commit" deraadt@
2019-02-20 23:59:17 +00:00
..
cat More whitespace, helps reading 2017-02-19 00:46:57 +00:00
chio (unsigned) means (unsigned int) which on ptrdiff_t or size_t or other 2019-02-13 22:57:07 +00:00
chmod Use uid_from_user(3) and gid_from_group(3) in utilities that 2018-09-16 02:44:06 +00:00
cp Implement cp -a ("archive" mode) 2019-01-28 18:58:42 +00:00
csh remove mention of sbrk. 2018-11-10 19:40:43 +00:00
date -p got changed to -f; 2019-01-22 06:53:30 +00:00
dd add fsync to STANDARDS; 2019-02-16 17:01:24 +00:00
df
domainname
echo improve markup quality in the cases found by the new "--" style message 2018-03-16 16:58:26 +00:00
ed Revert previous, there were some unintended beviour changes. 2018-06-19 12:36:18 +00:00
expr Fix overflows while handling 64 bit integers. 2018-03-31 14:50:56 +00:00
hostname
kill Use strtonum(3) instead of strtol(3). OK deraadt@ 2017-03-29 22:40:15 +00:00
ksh When evaluating an arithmetical expression, for example inside $(()), 2019-02-20 23:59:17 +00:00
ln format a pair of dashes as "\(em" rather than "--", 2018-12-07 23:21:31 +00:00
ls dev_t is signed to permit passing -1 as an invalid condition, but the 2019-02-05 02:17:32 +00:00
md5 I am retiring my old email address; replace it with my OpenBSD one. 2019-01-25 00:19:25 +00:00
mkdir
mt Add file # and block # to the information "mt status" shows. 2019-01-22 21:20:13 +00:00
mv mv imitates, but no longer uses, cp and rm to cross filesystems. 2018-11-14 15:53:31 +00:00
pax Use the new libc uid_from_user() and gid_from_group() instead of 2018-09-13 12:33:43 +00:00
ps Let ps(1) work in single user mode where /var/run does not exist. 2019-02-05 18:13:20 +00:00
pwd
rm Clarify that -P only *attempts* overwriting, which may not succeed; 2018-03-31 20:49:12 +00:00
rmdir
sleep Revert nanosleep(2) loop introduced in v1.25. 2019-01-10 16:41:10 +00:00
stty Quiet a clang warning from -Wstring-plus-int. OK naddy@ 2017-04-28 22:16:43 +00:00
sync
test Support integers of arbitrary length. 2018-04-02 06:47:43 +00:00
Makefile
Makefile.inc