tqdm/tqdm

CLI: Does not work with bash `continue`

LecrisUT opened this issue · 0 comments

  • I have marked all applicable categories:
    • documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand StackOverflow#tqdm is more appropriate)
    • new feature request
  • I have visited the source website, and in particular
    read the known issues
  • I have searched through the issue tracker for duplicates
  • I have mentioned version numbers, operating system and
    environment, where applicable:

The tqdm cli does not really work with continue syntax, e.g.:

for i in $(seq 0 5); do
  if [[ $(( $i % 3 )) -ne 0 ]]; then
    echo "Skipping $i"
    continue
  fi
  do_complicated_syntax
  echo "Finished $i"
done | tqdm --total 6