File: exec.t

package info (click to toggle)
posh 0.14.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,108 kB
  • sloc: ansic: 14,639; xml: 1,604; perl: 964; sh: 110; makefile: 36
file content (25 lines) | stat: -rw-r--r-- 376 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: exec-simple-1
description:
	Assignments for the execution of a function should not be kept.
category: debian,posix
stdin:
	f() { echo $a; }
	a=1 f
	echo x$a
expected-stdout:
	1
	x
---

name: exec-negate-1
description:
	A negated command is compound and should not trigger exit with set -e
category: debian,posix
stdin:
	set -e
	! true
	echo OK
expected-stdout:
	OK
---