-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Managor <[email protected]> Co-authored-by: Starbeamrainbowlabs <[email protected]>
- Loading branch information
1 parent
54b97f9
commit 78d0ad2
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
> Z Shell (`zsh`) builtin. Prints arguments, similar to `echo`. | ||
> See also: `echo`, `printf`, `zsh`. | ||
> More information: <https://zsh.sourceforge.io/Doc/Release/Shell-Builtin-Commands.html>. | ||
- Print input: | ||
|
||
`print "Hello" "World"` | ||
|
||
- Print separated by newline(s): | ||
|
||
`print -l "Linel" "Line 2" "Line3"` | ||
|
||
- Print without trailing newline: | ||
|
||
`print -n "Hello"; print "World"` | ||
|
||
- Enable backslash escapes: | ||
|
||
`print -e "Line 1\nLine2"` | ||
|
||
- Print arguments as described by 'printf' (for greater portability across shells, consider instead the `printf` command): | ||
|
||
`print -f "%s is %d years old.\n" "Alice" 30` |