It's weird that others are complaining that fish is always splitting their variables to lists. But to me it's just having the multiline variable as a single string.
I'm trying to write a nautilus script. The nautilus should set a variable called $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
with the selected files separated with newlines.
I'm trying to get them as a list to loop over them with fish. But they just behave as a single element.
set -l files $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
for i in (seq (count $files))
echo (count $files) >> koko
end
and the file koko now shows the number 1.