summary refs log tree commit diff
path: root/bin/cash/tests/expansion/question1.0
blob: e89aed94f7406b0d23f58fe17c7a59ab6a699a18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $FreeBSD: releng/12.0/bin/sh/tests/expansion/question1.0 213738 2010-10-12 18:20:38Z obrien $

x=a\ b
[ "$x" = "${x?}" ] || exit 1
set -- ${x?}
{ [ "$#" = 2 ] && [ "$1" = a ] && [ "$2" = b ]; } || exit 1
unset x
(echo ${x?abcdefg}) 2>&1 | grep -q abcdefg || exit 1
${SH} -c 'unset foo; echo ${foo?}' 2>/dev/null && exit 1
${SH} -c 'foo=; echo ${foo:?}' 2>/dev/null && exit 1
${SH} -c 'foo=; echo ${foo?}' >/dev/null || exit 1
${SH} -c 'foo=1; echo ${foo:?}' >/dev/null || exit 1
${SH} -c 'echo ${!?}' 2>/dev/null && exit 1
${SH} -c ':& echo ${!?}' >/dev/null || exit 1
${SH} -c 'echo ${#?}' >/dev/null || exit 1
${SH} -c 'echo ${*?}' 2>/dev/null && exit 1
${SH} -c 'echo ${*?}' ${SH} x >/dev/null || exit 1
${SH} -c 'echo ${1?}' 2>/dev/null && exit 1
${SH} -c 'echo ${1?}' ${SH} x >/dev/null || exit 1
${SH} -c 'echo ${2?}' ${SH} x 2>/dev/null && exit 1
${SH} -c 'echo ${2?}' ${SH} x y >/dev/null || exit 1
exit 0
McEnroe 2020-08-15Set title on control commandsJune McEnroe 2020-08-15Add 126 to hardcoded stop exitsJune McEnroe 2020-08-15Remove EX_CONFIG from default stopexitsJune McEnroe 2020-08-15Avoid "control named pipe" phraseJune McEnroe 2020-08-15Check if pipe is writable in wrapperJune McEnroe 2020-08-15Parse config laterJune McEnroe 2020-08-15Only log signals other than SIGTERMJune McEnroe 2020-08-15Clarify restart interval in catsitd manualJune McEnroe 2020-08-15Fix resetting restart interval with explicit restartJune McEnroe 2020-08-15Add reset interval after which restart interval is resetJune McEnroe 2020-08-15Log when service name pattern doesn't matchJune McEnroe 2020-08-15Add FreeBSD rc scriptJune McEnroe 2020-08-15Call setproctitle with number of servicesJune McEnroe 2020-08-15Rename project to catsitJune McEnroe 2020-08-15Use only LOG_NOTICE and LOG_WARNINGJune McEnroe 2020-08-15Make log messages consistentJune McEnroe 2020-08-15Remove closelog callJune McEnroe 2020-08-15Implement service statusJune McEnroe 2020-08-15Parse control commandsJune McEnroe 2020-08-15Read service pipesJune McEnroe 2020-08-15Implement non-blocking line-buffered readingJune McEnroe 2020-08-15Generate tags fileJune McEnroe 2020-08-15Just use CLOCK_MONOTONIC and clean up includesJune McEnroe 2020-08-15Reap childrenJune McEnroe 2020-08-14Implement serviceSignal, serviceStop, serviceRestartJune McEnroe 2020-08-14Reset restartInterval and restartDeadline on startJune McEnroe 2020-08-14Switch to timespec for timeoutsJune McEnroe 2020-08-14Implement serviceStartJune McEnroe 2020-08-14Flesh out Service structJune McEnroe 2020-08-14Build environment for servicesJune McEnroe 2020-08-14Implement spawntab parsingJune McEnroe 2020-08-14Open syslog, daemonize, write PIDJune McEnroe 2020-08-14Implement user and group lookupJune McEnroe 2020-08-14Add install targetJune McEnroe 2020-08-14Add spawnd skeletonJune McEnroe