plengauer / opentelemetry-bash

Apache License 2.0
62 stars 4 forks source link

set -u causes injected scripts to fail #685

Open plengauer opened 1 month ago

plengauer commented 1 month ago

set -u treats unset variable expansion as errors. when a script is auto injected, _root_span_handle is unset also, LINENO is unset in ubuntu dash's

plengauer commented 1 month ago
ubuntu@ip-172-31-41-64:~$ lsb_release -a
/usr/bin/lsb_release: 36: /tmp/tmp.yvaPMGcrJN: LINENO: parameter not set
/usr/bin/lsb_release: 452: _root_span_handle: parameter not set