title | date | tags |
---|---|---|
Multi-line string literals in Fish |
2023-11-17 |
The Fish shell has... interesting syntax for multi-line string literals. The only way I can reliably remember is to literally write them as multi-line literals, which does make a certain kind of brutalist sense:
function kiitos
set thankyou '---
kiitos kaynnista
ja tervetuloa uduelleen
---'
echo $thankyou
end
kiitos
reliably prints
---
kiitos kaynnista
ja tervetuloa uduelleen
---
, but man does it look funky to me.