Skip to content
This repository was archived by the owner on Feb 17, 2023. It is now read-only.
This repository was archived by the owner on Feb 17, 2023. It is now read-only.

Issue with single quote (') params with dcapis #446

@keyurkapasi

Description

@keyurkapasi

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions