Re: How to pass parameters containig options from variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 2012-09-25 10:47 +0200, bd@xxxxxxxxx wrote:
> I am trying to pass these arguments
> 
> 	-N -p -F "not host foo"
> 
> to a binary, but
> 
> 	ARGS="-N -p -F 'not host foo'"
> 	$DAEMON $ARGS
> 
> get's passed as 6 arguments and not 4.

eval $DAEMON $ARGS should work.

-- 
 --------------------------------------------------------------- 
| Olof Johansson                              http://stdlib.se/ |
|  irc: zibri                           https://github.com/olof |
 --------------------------------------------------------------- 
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux