☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days agoLike programming in bashimagemessage-square19fedilinkarrow-up1172cross-posted to: [email protected]
arrow-up1172imageLike programming in bash☆ Yσɠƚԋσʂ ☆@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 days agomessage-square19fedilinkcross-posted to: [email protected]
minus-squarebalsoft@lemmy.mllinkfedilinkarrow-up11·edit-21 day 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!