Hi, can anyone tell me how to handle spaces in a directory path when writing a zsh script? The code below works when there is no space in the folder name and script. When I introduce a space though I’m struggling to get terminal to see the directory. I have tried quotes. I have tried escaping the space with a backslash, as in the code below. Nothing has worked so far. I could just remove the spaces, but it would be good to know how to write the code so that it handles space in folder name.
rsync -av --dry-run $source_folder $destination_folder