Forum: Cfengine Help Subject: Re: Problem with special characters Author: max_fr Link to topic: https://cfengine.com/forum/read.php?3,21179,21184#msg-21184
It seems when i insert single quotes around the hash password, the dollar character is not interpreted. "new_root_pwd" string => "'$1$JNoH0WXg$3sF.c.I5aWMoAj8LpMtOW1'"; But, when i try to compare two strings by this function readstringarray("shadow_array","/etc/shadow","#[^\n]*",":",200,10000); ... "uppwd" not => strcmp("$(new_pwd)","$(shadow_array[1])"); $(shadow_array[1]) returns a string without dollar character as following sF.c.I5aWMoAj8LpMtOW1 :-( _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine