fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
6d0cd3d9b
master
1# RUN: %fish %s 2 3fg ( math 2 ^31 -1 ) 4# CHECKERR: fg: No suitable job: 2147483647 5 6fg ( math 2 ^31 ) 7# CHECKERR: fg: '2147483648' is not a valid process ID 8# CHECKERR: {{.*}}/fg.fish (line {{\d+}}): 9# CHECKERR: and builtin fg $args[-1] 10# CHECKERR: ^ 11# CHECKERR: in function 'fg' with arguments '2147483648' 12# CHECKERR: {{\t}}called on line {{\d+}} of file {{.*}}/fg.fish 13# CHECKERR: (Type 'help fg' for related documentation) 14 15fg 0 2>| string match --max-matches=1'*' >&2 16# CHECKERR: fg: '0' is not a valid process ID 17 18fg 19# CHECKERR: fg: There are no suitable jobs 20 21builtin fg ---1 2>| string match --max-matches=1'*' >&2 22# CHECKERR: fg: '-1' is not a valid process ID 23 24builtin fg ---1 2>| string match --max-matches=1'*' >&2 25# CHECKERR: fg: '-1' is not a valid process ID 26 27builtin fg -- -( math 2 ^31 ) 2>| string match --max-matches=1'*' >&2 28# CHECKERR: fg: '-2147483648' is not a valid process ID 29 30builtin fg1 2 31# CHECKERR: fg: '1' is not a job 32# CHECKERR: {{.*}}/fg.fish (line {{\d+}}): 33# CHECKERR: builtin fg 1 2 34# CHECKERR: ^ 35# CHECKERR: (Type 'help fg' for related documentation) 36 37sleep 1 & 38sleep 1 & 39builtin fg( jobs --pid) 40# CHECKERR: fg: Ambiguous job 41# CHECKERR: {{.*}}/fg.fish (line {{\d+}}): 42# CHECKERR: builtin fg (jobs --pid) 43# CHECKERR: ^ 44# CHECKERR: (Type 'help fg' for related documentation) 45set -l pid( jobs -lp) 46fg $pid 47# CHECKERR: fg: Can't put job {{\d+}}, 'sleep 1 &' to foreground because it is not under job control