logoalt Hacker News

lend000yesterday at 3:47 PM1 replyview on HN

I'm trying to understand what they are demonstrating with the "false; true" commands in the little video loop. Can someone chime in?


Replies

zygentomayesterday at 4:08 PM

`true` returns exit code 0

`false` returns an exit code != 0

The prompt indicates whether the last command returned exit code 0.