[Bug 1850804] Re: Tab completion warnings with ubuntu-bug when using alias for ls

Benjamin Drung 1850804 at bugs.launchpad.net
Tue Sep 19 12:21:34 UTC 2023


Fix for it: https://github.com/canonical/apport/pull/222

You can apply the fix manually be editing /usr/share/bash-
completion/completions/apport-bug and changing the function to:

_apport_symptoms ()
{
    local filename path symptoms
    for path in /usr/share/apport/symptoms/*; do
        [[ -e "$path" ]] || continue
        filename="${path##*/}"
        # hide utility files and symptoms that don't have a run() function
        [[ ! "$filename" =~ ^_.* ]] || continue
        grep -Eq "^def run\s*\(.*\):" "$path" || continue
        symptoms+=("${filename%.py}")
    done
    echo "${symptoms[*]}"
}

** Changed in: apport
       Status: New => In Progress

** Changed in: apport (Ubuntu)
       Status: Triaged => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1850804

Title:
  Tab completion warnings with ubuntu-bug when using alias for ls

Status in Apport:
  In Progress
Status in apport package in Ubuntu:
  In Progress

Bug description:
  When running ubuntu-bug on the command line, and tab completing the
  package name, the following warnings are printed:

  /usr/share/apport/symptoms/dist-upgrade.py: No such file or directory
  grep: /usr/share/apport/symptoms/release-upgrade.py: No such file or directory

  This happens when following alias is set:

  alias ls='ls -N --color=yes --time-style=long-iso'

  ProblemType: Bug
  DistroRelease: Ubuntu 19.10
  Package: apport 2.20.11-0ubuntu8.1
  ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
  Uname: Linux 5.3.0-19-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportLog:

  ApportVersion: 2.20.11-0ubuntu8.1
  Architecture: amd64
  CurrentDesktop: Unity:Unity7:ubuntu
  Date: Thu Oct 31 10:54:43 2019
  InstallationDate: Installed on 2017-08-16 (805 days ago)
  InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
  PackageArchitecture: all
  SourcePackage: apport
  UpgradeStatus: Upgraded to eoan on 2019-10-04 (26 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1850804/+subscriptions




More information about the foundations-bugs mailing list