1 2 3 4 5 6
#!/usr/bin/env bash cmd="$(echo "$0" | sed -e 's/\-list$//g')" pl="$0.pl" bash -c "$("$pl" $($cmd --list))"