Cli.sh_body: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6140-6144 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6140&end_line=6144 import Base def sh_body(s: String) -> String: match s: case SNil{}: SNil{} case SCon{Chr{39}, tail}: String.append("'\\''", sh_body(tail)) case SCon{c, tail}: SCon{c, sh_body(tail)} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil