diff --git a/bins/bin/create-shell-pager.sh b/bins/bin/create-shell-pager.sh index a0f42cfd2..f1e3e2fcf 100755 --- a/bins/bin/create-shell-pager.sh +++ b/bins/bin/create-shell-pager.sh @@ -1,7 +1,7 @@ -#!/bin/sh +#!/usr/bin/env zsh file=$(mktemp -t "$USER-"XXXXXXXX.emacs-pager) || exit 127 trap 'rm -f "$file"' EXIT trap 'exit 255' HUP INT QUIT TERM cat "$@" >"$file" -emacsclient -e "(wc/open-in-pager \"$file\")" +emacsclient -e "(wc/open-in-pager \"$file\")" >/dev/null