You are not logged in.
Pages: 1
I created this script to be able to repeatedly perform pacman commands without retyping pacman. However, pacman does not output on stdout (however, it does on stderr.) Is there a quirk of pacman that I am missing? 
Thanks for any help. 
#!/usr/bin/env bash
if [[ "$(whoami)" != 'root' ]]
then
    printf '%s\n' 'Must be root (2)'
    exit 2
fi
while true
do
    printf '%s' ' ==> '
    #shellcheck disable=2162
    read INPUT
    #shellcheck disable=2086
    pacman -${INPUT}
doneOffline
Your script works perfect for me. though, I would suggest using sudo instead for root user.
sudo pacman -${INPUT}Offline
Silly me. I was using Qtdq to test this script when in fact I had no dependencies that were not needed. Non-issue.
Offline
Pages: 1