I’m trying to run a ‘call’ function to call a different data file inside of a ‘loop for’ statement using FISH. However, when running the function an error that says: “unrecognized word. You cannot create a new symbol except as part of a direct assignment” shows up
The code looks like this:
fish define example_function
loop for (local i = 1, i < 5, i +=1)
call 'example.dat'
endloop
end
It appears FISH is assuming ‘call’ is a variable and not a function. Any advice? Can you not call a ‘.dat’ file with a fish function?