

6·
3 days agoI agree that comments like this are just hype. However, this is what Claude responded first try when I asked it your question verbatim:
Fish doesn’t support the <<EOF heredoc syntax — that’s a Bash/POSIX feature. Here are your options in Fish: Use printf or echo:
printf '%s\n' \
'line 1' \
'line 2' \
'line 3' > notes.txt
Use begin/end with a string:
echo "line 1
line 2
line 3" > notes.txt
Use string with multiline input:
string collect -- "line 1
line 2
line 3" > notes.txt
Or just call bash inline for a one-off heredoc:
bash -c 'cat <<EOF > notes.txt
line 1
line 2
line 3
EOF'
The printf approach is generally the most idiomatic Fish way to do it.
In a distant past I liked to compare hires tracks with the normal ones. It turned out that they often used a different master with more dynamic range for the hires release, tricking the listener into thinking it sounded different because of the high bitrate and sampling frequency. The second step was to convert the high resolution track to standard 16 bit 44.1 kHz and do a/b testing to prove my point to friends.