|
|
|
|
|
by seodisparate
903 days ago
|
|
One could use `printf 'first\0second'` in the Bash shell as an example of making a "string" with null embedded into it, but you can't store that in a Bash variable. $ TEST_VAR="$(printf 'first\0second')"
bash: warning: command substitution: ignored null byte in input
I'm not familiar with working with null characters in Bash in this way, but I think there might be a way to do it. |
|
One option with shells is some set/get functions that encode/decode to base64, hex, etc. Feels pretty clunky though.