Hi, pals.
I'm trying to convert an old bash script that runs normally in cygwin and linux.
For some reason the same command is not working on my FreeBSD box.
It is just one line that supose to echo command output when used with command dialog --prgbox.
If I use eval to execute bash (forking it) it comes with some error after displaying my motd message as if I logged in interactively.
This is the command without eval: empty output
If I use eval, something weird occurs: motd message appear as if I logged in interactively.
Plataform: PC Intel
FreeBSD version: 12.1-RELEASE r354233
Bash version: GNU bash, versão 5.0.17(0)-release (amd64-portbld-freebsd12.1)
Dialog version: 1.2-20130923
I'm trying to convert an old bash script that runs normally in cygwin and linux.
For some reason the same command is not working on my FreeBSD box.
It is just one line that supose to echo command output when used with command dialog --prgbox.
If I use eval to execute bash (forking it) it comes with some error after displaying my motd message as if I logged in interactively.
This is the command without eval: empty output
Bash:
dialog --stdout --no-collapse --backtitle "My Fantastic System" --title "Welcome!" --ok-label "Ok" --title "Backups Logs " --prgbox " " "echo there is no echo" "20" "64"
If I use eval, something weird occurs: motd message appear as if I logged in interactively.
Bash:
dialog --stdout --no-collapse --backtitle "My Fantastic System" --title "Welcome!" --ok-label "Ok" --title "Backups Logs " --prgbox " " "$(eval bash echo there is no echo)" "20" "64"
Plataform: PC Intel
FreeBSD version: 12.1-RELEASE r354233
Bash version: GNU bash, versão 5.0.17(0)-release (amd64-portbld-freebsd12.1)
Dialog version: 1.2-20130923