How to keep quotes in Bash arguments?
I have a Bash script where I want to keep quotes in the arguments passed. Example: ./test.sh this is "some test" then I want to use those arguments, and re-use them, including quotes and quotes around the whole argument list. I tried using \"$@\" , but that removes the quotes inside the list. How do I accomplish this? Randy Sugianto 'Yuku' Just use single quotes around the string with the double quotes: ./test.sh this is '"some test"' So the double quotes of inside the single quotes were also interpreted as string. But I would recommend to put the whole string between single quotes: ./test.sh