Kheperah Ray
Kheperah Ray

Reputation: 3

Zsh returns 'bad pattern' when attempting to Flash esp32

I recently switched over to zsh, and I ran into an issue while using my ESP32.

Before I began to build the project, every other command ran fine. However, when I attempt to run

idf.py -p cu.usbserial-DN0316ED [-b 115200] flash

I receive the following error: zsh: bad pattern: [-b

I have looked up this issue to see if anyone else has experienced something like this, and found some similar cases regarding Zsh plugins interfering with commands that contain () or []'s.

Upvotes: 0

Views: 3362

Answers (1)

Tarick Welling
Tarick Welling

Reputation: 3265

Remove the [] around the -b 115200.

You probably copied this command from a website which uses these brackets to imply that this part of the command is optional. As such you could drop -b 115200 and the command should still work.

Here is the documentation for the usage of idf.py. The idf.py flash explains the -b flag.

Upvotes: 1

Related Questions