Quantcast
Channel: Active questions tagged fish - Stack Overflow
Viewing all articles
Browse latest Browse all 131

Read file lines into list

$
0
0

How come $VARS doesn't contain ('testing', 'second') in the following example:

~ ❯❯❯ /bin/cat ttestingsecond~ ❯❯❯ /bin/cat t | read -L -a VARS~ ❯❯❯ echo $VARStesting~ ❯❯❯

I thought that -L is supposed to split on lines and then -a stores into a list. fish seems to stop after the first line, however.


Viewing all articles
Browse latest Browse all 131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>