|
From: | Mart Frauenlob |
Subject: | Re: how to pass arguments with space inside? |
Date: | Thu, 09 Apr 2009 23:18:21 +0200 |
User-agent: | Thunderbird 2.0.0.21 (Windows/20090302) |
lehe wrote:
Hi, I was wondering how to pass arguments with space inside. For example, my bash script looks like: #!/bin/bash ARG_OPTS=""while [[ -n "$1" ]]; ARG_OPTS="${ARG_OPTS} $1" shift doneIf I pass an argument like "--options='-t 0 -v 0'", then it would be splitted by the spaces inside, ie "--options='-t", "0", "-v" and "0". How can I achieve what I wish? Thanks and regards!
I wonder where's the bug report?You seem to miss that the support place for bash is 'gnu.bash' not 'gnu.bash.bug'.
btw. check builtin 'eval'. Greets Mart
[Prev in Thread] | Current Thread | [Next in Thread] |