man echo shows:
Quote:
-n Do not print the trailing newline character.
It's non-standard (any
echo option is non-standard).
Use
printf instead
---------- Post updated at 10:55 PM ---------- Previous update was at 10:47 PM ----------
Sorry, missed your second point.
From
man test:
Quote:
-n string True if the length of string is nonzero.
Each command has its own options, and while they might be the same (like
-n), their meaning depends on the command.