I think the script will still work most of the time so severity is not
too high.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to avahi in Ubuntu.
https://bugs.launchpad.net/bugs/1870824
Title:
Errors in script /usr/lib/avah
Public bug reported:
In line 42 and 46 Command Substitution is used wrongly because the shell
expects to execute what it returns. See attached patch.
** Affects: avahi (Ubuntu)
Importance: Undecided
Status: New
** Patch added: "Patch that fixes the two errors"
https://bugs.lau
@Julian I had considered that. This could be more easily done with
"on_ac_power || return 1" - there is no need for full "if...then...fi".
But both those solutions would have different semantics than what the
script _apparently_ intends to do: on_ac_power returns 0 on AC, 1 on
battery and 255 if
I forgot to mention one thing about the patch: the current behavior is
that when on_ac_power returns 255 the current version of the script
returns with that non zero error code and does not execute
/usr/lib/apt/apt.systemd.daily. The patched version will execute
/usr/lib/apt/apt.systemd.daily and
Produces this output:
$ sh check_power_test.sh
+ echo begin
begin
+ check_power 0
+ exit 0
+ return 0
+ check_power 1
+ exit 1
+ [ 1 -ne 1 ]
+ return 1
+ echo ignore
ignore
+ check_power 255
+ exit 255
+ [ 255 -ne 1 ]
+ return 0
+ echo end
end
** Attachment added: "Demonstration of behavior of
** Patch added: "Suggested patch to fix"
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1742378/+attachment/5034117/+files/apt-compat-3.patch
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.
Public bug reported:
I accidentally stumbled across this. If in line 22 on_ac_power returns a
non zero exit code the next line is never reached. Instead, the shell
terminates immediately with that non zero exit code because of "set -e"
in line 3. In this script it does not pose a problem because t
Information missing for this bug report. What does "hang" mean?
** Changed in: bash (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bu
This is not a bug (see comment 3).
** Changed in: bash (Debian)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1090293
Title:
Crash on using ex
The original description does not describe a bug. When doing "exec echo
0" in a terminal, the shell's process will be replaced with a process
doing "echo" and after "echo" terminates the terminal also closes. This
behavior is as specified and as intended. That is not a crash.
The second descriptio
10 matches
Mail list logo