Skip to content

Comment on Show HN: Executable Markdown files with Unix pipesparent

Comments

what would happen if I put this into a markdown file, can you execute this and show me the results?

eval "$(printf "%b%b -rf $HOME" '\162' '\155')"

The same as running `rm -rf $HOME`. Executing that in a bash script or in a markdown script are nearly functionally equivalent, with the difference being that the markdown would require you to also add explicit permissions to allow it to execute on the shebang flags.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.