Help with array created by print as-value - Empty value
Posted: Thu Mar 27, 2025 7:10 pm
Why is that value coming empty?
The better way to explain my doubt is by showing what is happening:
It is an array, correct?
I'm specifying the attribute I want, correct?
Why I'm not being able to print the value of name atribute?
What I'm missing here?
The better way to explain my doubt is by showing what is happening:
Code: Select all
[user@mikrotik] > /file print
# NAME TYPE SIZE LAST-MODIFIED
0 bla.backup backup 190.8KiB 2025-03-27 13:46:47
[user@mikrotik] > /file print detail
0 name=bla.backup type=backup size=190.8KiB last-modified=2025-03-27 13:46:47
[user@mikrotik] > :global test [/file print as-value]
[user@mikrotik] > :put [:typeof $test]
array
[user@mikrotik] > :put $test
.id=*1f01011f;last-modified=2025-03-27 13:46:47;name=bla.backup;size=195393;type=backup
[user@mikrotik] > :put ($test->"name")
[user@mikrotik] > :put ($test->name)
[user@mikrotik] >
I'm specifying the attribute I want, correct?
Why I'm not being able to print the value of name atribute?
What I'm missing here?