Facing issue with parameters having single quote using dcapi codes. It ignore single quote (') and generate runfile without the quote. following is my dcapi code
export CHECKOUT=/root/design-center/tools/cf-sketch
export DCJV=$CHECKOUT/config-vagrant.json
export CFAPI=$CHECKOUT/cf-dc-api.pl
echo '{ dc_api_version: "3.6.0", request: {define: { "vagrant::System::sysconfig::sysconfig_deb": { "System::sysconfig": { "profile_params" :[ "source /etc/bash.bashrc" ], "bashrc_params_deb" : ["export LS_OPTIONS='--color=auto'", "alias ls='ls $LS_OPTIONS'", "alias ll='ls $LS_OPTIONS -l'", "alias l='ls $LS_OPTIONS -lA'"], "locale_gen" : "en_US.UTF-8 UTF-8", "locale_LANG" : "en_US.UTF-8", "locale_LANGUAGE" : "en_US:en","keyboard_layout_debian" : "de" } } } } }' | $CFAPI $DCJV
The generated runfile and provides the params excluding (') like mentioned
"___001_System_sysconfig_sysconfig_deb_bashrc_params_deb" data => parsejson('["export LS_OPTIONS=--color=auto","alias ls=ls --color=auto","alias ll=ls --color=auto -l","alias l=ls --color=auto -lA"]');
I tried /, \ and many more options but it ignores (') however It works fine with interactive mode. while using interactive mode, it generates runfile using \ like
"__System_sysconfig_1_001_System_sysconfig_sysconfig_deb_bashrc_params_deb" data => parsejson('["export LS_OPTIONS='--color=auto'","alias ls='ls $LS_OPTIONS'"," alias ll='ls $LS_OPTIONS -l'","alias l='ls $LS_OPTIONS -lA'"]);
Anybody has any clue regarding ?