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)

Copied to clipboard
Kai