freebsd-skq/bin/sh/tests/expansion
jilles 948728c4a6 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
arith2.0
arith3.0
arith4.0
arith5.0
arith6.0
arith7.0
arith8.0
arith9.0
arith10.0
arith11.0
arith12.0
arith13.0
arith14.0 sh: Mask off shift distance (<< and >>) in arithmetic. 2014-08-15 22:36:41 +00:00
assign1.0
cmdsubst1.0
cmdsubst2.0
cmdsubst3.0
cmdsubst4.0
cmdsubst5.0
cmdsubst6.0
cmdsubst7.0
cmdsubst8.0
cmdsubst9.0
cmdsubst10.0
cmdsubst11.0
cmdsubst12.0
cmdsubst13.0
cmdsubst14.0
cmdsubst15.0
cmdsubst16.0
cmdsubst17.0
export1.0
export2.0
export3.0
heredoc1.0
heredoc2.0
ifs1.0
ifs2.0
ifs3.0
ifs4.0
length1.0
length2.0
length3.0
length4.0
length5.0
length6.0
length7.0
length8.0
local1.0
local2.0
Makefile sh: Mask off shift distance (<< and >>) in arithmetic. 2014-08-15 22:36:41 +00:00
pathname1.0
pathname2.0
pathname3.0
pathname4.0
plus-minus1.0
plus-minus2.0
plus-minus3.0
plus-minus4.0
plus-minus5.0
plus-minus6.0
plus-minus7.0
plus-minus8.0
question1.0
readonly1.0
set-u1.0
set-u2.0
set-u3.0
tilde1.0
tilde2.0
trim1.0
trim2.0
trim3.0
trim4.0
trim5.0
trim6.0
trim7.0
trim8.0