To test multiple lines of I usually used to save it in a file and run it. 😞

But just found out it can be done more easily:

1. type `{` and enter
2. enter multiple lines of shell script
3. press enter and close it with `}` then enter again

Works on , , /bin/sh (, ) and possibly every other shell out there. This makes a whole lot fun for me. 👍

· · Web · 0 · 8 · 10
Sign in to participate in the conversation

Hello! is a general-topic instance. We're enthusiastic about Mastodon and aim to run a fast, up-to-date and fun Mastodon instance.