opnsense-src/bin/sh/tests/expansion
Jilles Tjoelker d5b14891eb sh: Mask off shift distance (<< and >>) in arithmetic.
In C, shift distances equal to or larger than the number of bits in the
operand result in undefined behaviour. As part of eliminating undefined
behaviour in arithmetic, mask off the distance like Java and JavaScript
specify and C on x86 usually does.

Assumption: conversion from unsigned to signed retains the two's complement
bits.
Assumption: uintmax_t has no padding bits.
2014-08-15 22:36:41 +00:00
..
arith1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith4.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith5.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith6.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith7.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith8.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith9.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith10.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith11.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith12.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith13.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
arith14.0 sh: Mask off shift distance (<< and >>) in arithmetic. 2014-08-15 22:36:41 +00:00
assign1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst4.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst5.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst6.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst7.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst8.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst9.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst10.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst11.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst12.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst13.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst14.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst15.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst16.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
cmdsubst17.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
export1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
export2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
export3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
heredoc1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
heredoc2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
ifs1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
ifs2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
ifs3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
ifs4.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length4.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length5.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length6.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length7.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
length8.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
local1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
local2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
Makefile sh: Mask off shift distance (<< and >>) in arithmetic. 2014-08-15 22:36:41 +00:00
pathname1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
pathname2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
pathname3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
pathname4.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus4.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus5.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus6.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus7.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
plus-minus8.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
question1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
readonly1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
set-u1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
set-u2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
set-u3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
tilde1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
tilde2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim1.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim2.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim3.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim4.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim5.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim6.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim7.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00
trim8.0 Migrate tools/regression/bin/ tests to the new layout. 2013-12-11 04:09:17 +00:00