bash - quoting
Hello,
I have some problems in using quotes: I want to use the dialog command in a script so that the user can select some options. This works fine Code:
index=0 Code:
index=0 Code:
str=$str$item" '"${valarray_desc[$index]}"' " Any ideas? Thanks RGummi |
Does that do what you want?
Code:
index=0 Cheers, Tink |
no!
I have already tried this. How can I add a ' to a string without getting \'? RGummi |
Ok I have solved my problem in an other way! Since the shell insist on quoting special characters like ' I will use it to automatically quote the right parts. So I put all in a new array!
Code:
#! /bin/bash -xv RGummi |
All times are GMT -5. The time now is 02:08 AM. |