Univention Bugzilla – Bug 45592
ucr shell sets empty strings for unset variables
Last modified: 2020-08-20 16:18:35 CEST
eval "$(ucr shell)" sets empty strings for unset variables. It should not do that. Example: =================================================== root@master10:~# ucr search --brief dns/forwarder dns/forwarder1: 192.168.0.3 dns/forwarder2: <empty> dns/forwarder3: <empty> root@master10:~# ucr shell dns/forwarder.* dns_forwarder1=192.168.0.3 dns_forwarder2='' dns_forwarder3='' =================================================== Expected: =================================================== root@master10:~# ucr shell dns/forwarder.* dns_forwarder1=192.168.0.3 =================================================== This would simplify proper handling of values in bash scripts.
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.