☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 months agoLike programming in bashlemmy.mlexternal-linkmessage-square23linkfedilinkarrow-up11arrow-down10cross-posted to: programmer_humor@programming.dev
arrow-up11arrow-down1external-linkLike programming in bashlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 9 months agomessage-square23linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squarebalsoft@lemmy.mllinkfedilinkarrow-up0·edit-29 months ago Why -z? I have no idea. From man test (note that [ <expr> ] is just sugar for test <expr>): -n STRING the length of STRING is nonzero -z STRING the length of STRING is zero So, -z stands for Zero. Hope this helps you remember it!
From
man test(note that[ <expr> ]is just sugar fortest <expr>):-n STRING the length of STRING is nonzero -z STRING the length of STRING is zeroSo,
-zstands for Zero.Hope this helps you remember it!