Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ramshorns
· 3y ago · 0 comments
How does that work? It doesn't look like ! is a command or shell builtin, so I guess it's an argument to if.
Comments
[–]
mkl
3y ago
No, it's part of the shell. Do "man bash" or "man sh", then search with "/\!". From man bash: "If the reserved word ! precedes a pipeline, the exit status of that pipeline is the logical negation of the exit status".