How can I make this work?
incus exec myct -- bash << 'EOF'
echo "Testing input/output with user \"$USER\""
read input
echo "Received: $input"
EOF
This is a simplified version of the issue that I have with dnf package manager’s Y/N prompts.
The here doc/EOF construct is definitely part of the problem but I would really like to rely on it and supposedly with properly allocated pseudo-terminal this should work.
Adding --mode=interactive
or -t, --force-interactive
options to exec doesn’t produce the expected result either and breaks my shell actually. Neither does adding -i
to bash.