Spotify-Downloader-Bash icon indicating copy to clipboard operation
Spotify-Downloader-Bash copied to clipboard

Bad substitution

Open eugnio1 opened this issue 1 year ago • 5 comments

I've upgraded ==> Upgrading 1 outdated package: yt-dlp 2024.7.9 -> 2024.7.16 Downloader.sh: line 202: ${numJobs@P} >= ${processNumber} : bad substitution

eugnio1 avatar Jul 21 '24 05:07 eugnio1

Hey sorry for the delayed reply. I could not reproduce the issue. Could you provide some more information?

Daenges avatar Aug 21 '24 11:08 Daenges

I've upgraded ==> Upgrading 1 outdated package: yt-dlp 2024.7.9 -> 2024.7.16 Downloader.sh: line 202: ${numJobs@P} >= ${processNumber} : bad substitution

Check if you're actually using bash? Or check your bash version. bash --version

Wasn't using jobs -p | wc -l plausible for compatibility?

ProjectSeve avatar Sep 06 '24 23:09 ProjectSeve

./Downloader.sh: line 202: ${numJobs@P} >= ${processNumber} : bad substitution All downloads have been started. Waiting for completion. I'm using a m2 Mac by the way, Sorry I moved on and thought I won't get a reply

eugnio1 avatar Jan 14 '25 12:01 eugnio1

GNU bash, version 3.2.57(1)-release (arm64-apple-darwin22) Copyright (C) 2007 Free Software Foundation, Inc.

eugnio1 avatar Jan 14 '25 12:01 eugnio1

This appears to be a Mac specific problem. Works as expected under Linux (even using zsh).

resol341 avatar Jul 06 '25 21:07 resol341