I have the following sample piece of script that works properly on Ubuntu but it stops working when I switch to slackware:
Code:
dialog --title "Test" --gauge "Copying file." 6 100 < <(
rsync -a --progress test.tar.gz /media/sda1 |
unbuffer -p grep -o "[0-9]*%" |
unbuffer -p cut -f1 -d '%'
)
The error is:
Code:
Syntax error near unexpected token `<'
If I get rid of dialog command, I am able to execute the script. What could be wrong?