I am using 'vifm --remote' in a bash script. Here is my bash script:
#!/bin/bash
read -e -p "Enter folder name: " dirName
mkdir "$dirName"
vifm --server-name vifm --remote +"goto \"$dirName\""
This creates new folder for inputs even if they have space, single quotes and/or double quotes. However, I couldn't manage to get the last line (vifm --remote
) to work if the input has double quote. How can I escape double quotes in the input arguments that are used in vifm --remote
command?
Thank you