File: exitcode.fqtest

package info (click to toggle)
fq 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 106,624 kB
  • sloc: xml: 2,835; makefile: 250; sh: 241; exp: 57; ansic: 21
file content (26 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (2)
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
26
$ fq
exitcode: 2
stderr:
Usage: fq [OPTIONS] [--] [EXPR] [FILE...]
$ fq -n '1+"a"'
exitcode: 5
stderr:
error: cannot add: number (1) and string ("a")
$ fq -n '"abc" | halt_error(123)'
exitcode: 123
stderr:
error: abc
$ fq -n 'null | halt_error(123)'
exitcode: 123
$ fq -n invalid
exitcode: 3
stderr:
error: arg: function not defined: invalid/0
$ fq -n "("
exitcode: 3
stderr:
error: arg:1:1: unexpected EOF
$ fq . non-existing
exitcode: 2
stderr:
error: non-existing: no such file or directory