LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pushln

Push arguments onto the shell buffer stack

TLDR

Push a string onto the buffer stack
$ pushln "[text to push]"
copy
Push a command to be edited before execution
$ pushln "ls -la /tmp"
copy
Push multiple words onto the buffer stack as one entry
$ pushln [word1] [word2] [word3]
copy

SYNOPSIS

pushln [arg ...]

DESCRIPTION

pushln is a zsh builtin that pushes its arguments (concatenated with spaces) onto the shell's buffer stack. The buffer stack is a LIFO (last-in, first-out) data structure. Entries on the buffer stack are presented as editor buffer content for the next interactive command line, or can be read programmatically with getln.This is equivalent to print -nz (push onto the editing buffer stack without a trailing newline). The buffer stack provides a way to pre-fill the command line or pass data between shell functions.

CAVEATS

Only available in zsh. The buffer stack is cleared when the shell exits. In interactive use, pushed lines appear as editable input at the next prompt. Arguments are concatenated with spaces (like print -nz), not pushed as separate stack entries.

HISTORY

pushln is part of zsh's buffer stack mechanism, introduced as a complement to getln for the Z Shell's unique line buffering system.

SEE ALSO

getln(1), print(1), zsh(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid