Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 529 Bytes

multi-line-string-literals-in-fish.md

File metadata and controls

32 lines (26 loc) · 529 Bytes
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.