actually sorry these errors are generated during the following command:

list_apps is a pretty large function but it can be simplified to the
following and still produce the same issue:

list_apps() { # $1 can be: installed, uninstalled, corrupted, cpu_installable, 
hidden, visible, online, online_only, local, local_only
   #list all apps
   ls "${DIRECTORY}/apps"

}


list_intersect() { #Outputs only the apps that appear in both stdin and in $1
  # for example, the following two inputs will be a match
  # Audacity
  # Audacity
  # while these two will NOT be a match
  # Multimedia/Audacity
  # .*/Audacity
  comm -12 - <(echo "$1" | sort)
}

APPS="$(grep -v '/' <<<"$vfiles" | list_intersect "$(list_apps
cpu_installable)")"

in this example, vfiles variable stores the following:

Caskaydia Cove NF
Color Emoji font
Colored Man Pages
Command Not Found
Conky
Conky Rings
Geany Dark Mode
Lightpad
Oh My Posh
Oomox Theme Designer
Powerline-Shell
Ulauncher
Windows Screensavers
XSnow

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

Title:
  sort command pipe output fails

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2127885/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to