View Single Post
Old 08-11-2019, 10:02 AM   #149
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yeah, --clear is never actually a shortcut (it's not intended to mean "clear the screen and get out", but "clear the screen before doing whatever else needs to be done"), there's a few workarounds to make it so when positional arguments are involved, but if stdin is not empty, it'll get drained .

So, yeah, either pass a single space as a positional arg, or ensure stdin is empty, which is what happens with your /dev/null redirection .

Last edited by NiLuJe; 08-12-2019 at 07:52 AM.
NiLuJe is offline   Reply With Quote