RPi-Distro / raspi-config

Configuration tool for the Raspberry Pi
Other
570 stars 209 forks source link

raspi-config: warning: command substitution: ignored null byte in input #248

Closed Allan-N closed 4 months ago

Allan-N commented 5 months ago

When exec'ing raspi-config (on a Pi Zero 2 W) I noticed the following warning message :

/usr/bin/raspi-config: line 43: warning: command substitution: ignored null byte in input

The simplest way I found to repro was to use bash -x raspi-config nonint do_finish

Reviewing the output you should see :

...
+ '[' -e /proc/device-tree/chosen/os_prefix ']'
++ cat /proc/device-tree/chosen/os_prefix
/usr/bin/raspi-config: line 43: warning: command substitution: ignored null byte in input
+ PREFIX=
...

The following output may also help :

$ od -xc /proc/device-tree/chosen/os_prefix
0000000    0000
         \0
0000001
XECDesign commented 4 months ago

Thanks