79613316

Date: 2025-05-08 23:59:07
Score: 1.5
Natty:
Report link

pbpaste with double quotes or `pbpaste | sed 's/ /\\\ /g'z` used to work perfectly on my old MBP2012 with paths copied with Cmd+Shift+C, but the same approach doesn't work anymore on a new M4 Mac mini. So, say open `pbpaste` for a path like /Users/yyy/Documents/My File 1.pdf throughs an error "The files /Users/yyy/'/Users/yyy/Documents/My, /Users/yyy/Documents/File, /Users/yyy/Documents/1.pdf' do not exist." Adding quotes open "`pbpaste`" yields "The files /Users/yyy/'/Users/yyy/Documents/My File 1.pdf' do not exist." Using sed doesn't change the situation at all. I tried in Mac's native Terminal, iTerm and Kitty. All same. Clueless. Lost. Need your help.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user24478075