☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days agoLike programming in bashlemmy.mlimagemessage-square19fedilinkarrow-up1173arrow-down11cross-posted to: [email protected]
arrow-up1172arrow-down1imageLike programming in bashlemmy.ml☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days agomessage-square19fedilinkcross-posted to: [email protected]
minus-squarebalsoft@lemmy.mllinkfedilinkarrow-up11arrow-down1·edit-22 days 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 zero
So,
-z
stands for Zero.Hope this helps you remember it!