summary refs log tree commit diff
path: root/bin/cash/tests/parameters/positional1.0
blob: f1cf7a041ac9676409feb222e1206975c619a4c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# $FreeBSD: releng/12.0/bin/sh/tests/parameters/positional1.0 222158 2011-05-21 14:52:26Z jilles $

set -- a b c d e f g h i j
[ "$1" = a ] || echo "error at line $LINENO"
[ "${1}" = a ] || echo "error at line $LINENO"
[ "${1-foo}" = a ] || echo "error at line $LINENO"
[ "${1+foo}" = foo ] || echo "error at line $LINENO"
[ "$1+foo" = a+foo ] || echo "error at line $LINENO"
[ "$10" = a0 ] || echo "error at line $LINENO"
[ "$100" = a00 ] || echo "error at line $LINENO"
[ "${10}" = j ] || echo "error at line $LINENO"
[ "${10-foo}" = j ] || echo "error at line $LINENO"
[ "${100-foo}" = foo ] || echo "error at line $LINENO"
tr> 2018-11-15Add gzerror.3June McEnroe 2018-11-15Add gzclose_* Nm linesJune McEnroe 2018-11-15Add gzclose.3June McEnroe 2018-11-15Add gzdirect.3June McEnroe 2018-11-15Add gzeof.3June McEnroe 2018-11-13Add gzoffset.3June McEnroe 2018-11-13Add gztell(3) to gzseek.3June McEnroe 2018-11-13Add gzseek.3June McEnroe 2018-11-13Add gzflush.3June McEnroe 2018-11-13Fix spacing after parenthetical sentencesJune McEnroe 2018-11-13Add gzungetc.3June McEnroe 2018-11-13Add gzgetc.3June McEnroe 2018-11-13Add gzputc.3June McEnroe 2018-11-13Add gzgets.3June McEnroe 2018-11-13Add gzputs.3June McEnroe 2018-11-13Add gzprintf.3June McEnroe 2018-11-13Add gzfwrite.3June McEnroe 2018-11-13Add gzwrite.3June McEnroe 2018-11-12Add gzfread.3June McEnroe 2018-11-12Add gzread.3June McEnroe 2018-11-12Add gzsetparams.3June McEnroe 2018-11-12Add gzbuffer.3June McEnroe 2018-11-12Add gzdopen to gzopen.3June McEnroe 2018-11-12Add gzopen.3June McEnroe 2018-11-12Add inflateBackEnd.3June McEnroe 2018-11-12Add inflateBack.3June McEnroe 2018-11-12Add inflateBackInit.3June McEnroe 2018-11-11Add inflateGetHeader.3June McEnroe 2018-11-11Add inflateMark.3June McEnroe 2018-11-11Add inflatePrime.3June McEnroe 2018-11-11Add inflateReset.3June McEnroe 2018-11-11Add inflateCopy.3June McEnroe 2018-11-11Add inflateSync.3June McEnroe 2018-11-11Add inflateGetDictionary.3June McEnroe 2018-11-11Add inflateSetDictionary.3June McEnroe 2018-11-11Add inflateInit2.3June McEnroe