Bash: Add print.

This commit is contained in:
Dmitry Voronin 2024-12-09 08:35:01 +03:00
parent 7aa1e10fbf
commit 4df6c6c69d
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -0,0 +1,9 @@
{ ... }: {
text = ''
# Printf shortcut.
# Usage: print [TEXT]
function print() {
printf "%s" "''${*}"
}
'';
}