File: function.out

package info (click to toggle)
fish 3.0.2-2%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,448 kB
  • sloc: ansic: 75,559; cpp: 43,314; sh: 9,096; javascript: 7,710; python: 2,538; makefile: 1,461; objc: 709; perl: 367; xml: 18
file content (79 lines) | stat: -rw-r--r-- 2,255 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79

####################
# Test the -V flag

####################
# Testing -V
$foo: set in local scope, unexported, with 1 elements
$foo[1]: length=9 value=|local foo|
$foo: set in global scope, unexported, with 1 elements
$foo[1]: length=10 value=|global foo|
$foo: not set in universal scope

$bar: set in local scope, unexported, with 5 elements
$bar[1]: length=3 value=|one|
$bar[2]: length=8 value=|two    2|
$bar[3]: length=1 value=|\t|
$bar[4]: length=0 value=||
$bar[5]: length=1 value=|3|
$bar: set in global scope, unexported, with 5 elements
$bar[1]: length=3 value=|one|
$bar[2]: length=8 value=|two    2|
$bar[3]: length=1 value=|\t|
$bar[4]: length=0 value=||
$bar[5]: length=1 value=|3|
$bar: not set in universal scope

$baz: set in local scope, unexported, with 0 elements
$baz: set in global scope, unexported, with 0 elements
$baz: not set in universal scope


####################
# Testing -V with changed variables
$foo: set in local scope, unexported, with 1 elements
$foo[1]: length=9 value=|local foo|
$foo: set in global scope, unexported, with 1 elements
$foo[1]: length=10 value=|global foo|
$foo: not set in universal scope

$bar: set in local scope, unexported, with 5 elements
$bar[1]: length=3 value=|one|
$bar[2]: length=8 value=|two    2|
$bar[3]: length=1 value=|\t|
$bar[4]: length=0 value=||
$bar[5]: length=1 value=|3|
$bar: set in global scope, unexported, with 1 elements
$bar[1]: length=7 value=|bad bar|
$bar: not set in universal scope

$baz: set in local scope, unexported, with 0 elements
$baz: set in global scope, unexported, with 1 elements
$baz[1]: length=7 value=|bad baz|
$baz: not set in universal scope

Function name1 found
Function name2 not found as expected
Function name3 found
Function name4 not found as expected

####################
# Verify that functions can be copied. Tests against regression of issue #3601

####################
# Checking that the copied functions are identical other than the name
1c1
< function name1 --argument arg1 arg2
---
> function name1a --argument arg1 arg2
1c1
< function name3 --argument arg1 arg2
---
> function name3a --argument arg1 arg2

####################
# Checking reserved names

####################
# Checking `functions -q` without arguments
False