st is the actual name of the terminal emulator in my question - https://st.suckless.org/.
I want to create a shortcut that if pressed, pops up st and displays the translation of the word in the clipboard.
I tried using this, but is exits immediately and gives an error:
$ st -e "trans $(xclip -o) -t en; read"` child finished with error '256'
But the same works with
xterm just as expected:
$ xterm -e "trans $(xclip -o) -t en; read"
Using only one command as the
-e option of st works, but I need to execute read or something like that after trans so the terminal won`t close immediately.
Is this a bug in st or am I doing something wrong?