building using esp8266, on mac sierra, with oh-my-zsh as shell.
Never had any issue, just did the latest mac update and rebooted and I get this if i try to upload using Serial.
Linking .pioenvs/beta/firmware.elf
Checking program size .pioenvs/beta/firmware.elf
text data bss dec hex filename
367377 15876 30672 413925 650e5 .pioenvs/beta/firmware.elf
Building .pioenvs/beta/firmware.bin
Looking for upload port...
Use manually specified: /dev/cu.usbserial
Uploading .pioenvs/beta/firmware.bin
sh: -cp: command not found
*** [upload] Error 127
========================================== [ERROR] Took 5.04 seconds ==========================================
================================================== [SUMMARY] ==================================================
Environment default [SKIP]
Environment beta [ERROR]
========================================== [ERROR] Took 5.04 seconds ==========================================