kube-tarian / git-bridge

Escaping a non-special character SH-1001
Anti-pattern
Minor
2 years ago2 years old
This \0 will be a regular '0' in this context
764		// cut trailing : number.
765		p = strrchr(buf, ":"[0]);
766		if(p)
767			*p = '\0';768		printf("\t{ %d, \"%s\", \"%s\" },\n", e, signals[i].name, buf);
769	}
770	printf("}\n\n");
This \- will be a regular '-' in this context
111	    delta_pct=$(echo "$head_pct - $target_pct" | bc -l)
112	    echo "Delta: ${delta_pct}"
113
114	    if [[ $delta_pct = \-* ]]; then115		    echo "Regression!";
116
117            target_diff="${output_dir}/target.diff.txt"