xargs: Reopen stdin as TTY

Tags: til vim xargs cli

xargs has a flag -o that reopens stdin as the TTY before invoking the command.

This is very helpful for piping a list of filepaths into an interactive command:

ls **/*.csv | xargs -o vim
Published on: 11 Jul 2026