Public bug reported:
The ng program that wraps ng-latin seems to require quotes around $NG in
the 'if' clause as shown below. Otherwise, if ng-latin or the other
ng-* are not installed, the 'exec $NG "$@"' will always execute rather
than notifying the user that the none of the ng-* are installed.
if [ -n "$NG" ]; then
exec $NG "$@"
else
echo "Neither ng-latin, ng-cjk, nor ng-cjk-canna found."
echo "Please install what you prefer."
fi
This was found on
Description: Ubuntu 20.04.1 LTS
Release: 20.04
The actual script is /usr/bin/ng and doesn't seem to belong to a package.
Steps:
uninstall ng-latin, ng-cjk, and ng-cjk-canna
execute: /usr/bin/ng
Expected:
message: Neither ng-latin, ng-cjk, nor ng-cjk-canna found.
Please install what you prefer.
Actual: no output as a result of executing "exec" with no arguments
** Affects: ng (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
The ng program that wraps ng-latin seems to require quotes around $NG in
the 'if' clause as shown below. Otherwise, if ng-latin or the other
ng-* are not installed, the 'exec $NG "$@"' will always execute rather
than notifying the user that the none of the ng-* are installed.
-
if [ -n "$NG" ]; then
- exec $NG "$@"
+ exec $NG "$@"
else
- echo "Neither ng-latin, ng-cjk, nor ng-cjk-canna found."
- echo "Please install what you prefer."
+ echo "Neither ng-latin, ng-cjk, nor ng-cjk-canna found."
+ echo "Please install what you prefer."
fi
-
- This was found on
+ This was found on
Description: Ubuntu 20.04.1 LTS
Release: 20.04
The actual script is /usr/bin/ng and doesn't seem to belong to a package.
Steps:
- uninstall ng-latin, ng-cjk, and ng-cjk-canna
- execute: /usr/bin/ng
- Expected:
- message: Neither ng-latin, ng-cjk, nor ng-cjk-canna found.
- Please install what you prefer.
- Actual: no output as a result of executing "exec" with arguments
+ uninstall ng-latin, ng-cjk, and ng-cjk-canna
+ execute: /usr/bin/ng
+ Expected:
+ message: Neither ng-latin, ng-cjk, nor ng-cjk-canna found.
+ Please install what you prefer.
+ Actual: no output as a result of executing "exec" with no arguments
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1901717
Title:
/usr/bin/ng script never executes 'else' condition
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ng/+bug/1901717/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs