and yes, I get the same issue if I store the output from list_apps. this
will probably be an easier case for you to reproduce since it can be run
without any additional repo clone
the below are all bash (between the ###)
#####################################
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)
}
vfiles="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"
list_apps_output="AbiWord
Alacritty Terminal
All Is Well
Amiberry
AndroidBuddy
Angry IP scanner
AntiMicroX
Antigravity
AnyDesk
Arduino
AstroMenace
Audacious
Audacity
Autostar
Azahar
BalenaEtcher
Bambu Studio
Better Chromium
BleachBit
BlockBench
BlueJ Java IDE
Bongo Cam
Botspot Screen Recorder
Botspot Virtual Machine
Box64
Box86
Boxy SVG
Brave
Browsh
Caprine
Caskaydia Cove NF
Celeste Classic
Celeste64
Chrome
Chromium
Clam Antivirus
CloudBuddy
Codex
Color Emoji font
Colored Man Pages
Command Not Found
CommanderPi
Conky
Conky Rings
Cool Retro Term
CrazyCattle3D
Cura
DDNet
Deluge
Descent 1
Descent 2
Deskreen
Disk Usage Analyzer
Doom 3
Dot Matrix
Downgrade Chromium
Drawing
Ducopanel
Eagle CAD
Easy Effects
Electron Fiddle
En Croissant
Epiphany
Ethernet Hotspot
FF Multi Converter
Fastfetch
Feather Wallet
Filezilla
Firefox Rapid Release
Flameshot
Floorp
Flow
FreeCAD
FreeTube
Friday Night Funkin' Rewritten
Friday Night Funkin' Shadow Engine
Fritzing
GB Studio
GIMP
GParted
Geany Dark Mode
Geekbench 5
Geekbench 6
Github Desktop
Github-CLI
Gnome Builder IDE
Gnome Maps
Gnome Software
Gnumeric
Godot
Guake Terminal
HTTrack Website Copier
Hangover
Heroes 2
Https File Server
Hyper
INAV Configurator
Imager
Inkscape
Intellij IDEA
Kdenlive
KeePassXC
KiCad
Kodi
Kolourpaint
Krita
LMMS
Legcord
Lego Digital Designer
LibreCAD
LibreOffice
LibrePCB
LibreWolf
Libreoffice MS theme
Lightpad
LineRider
Linux Wifi Hotspot
Marathon
MatterControl
Microsoft PowerShell
Microsoft Teams
Min
Minecraft Bedrock
Minecraft Java GDLauncher
Minecraft Java Prism Launcher
Minecraft Java Server
Minecraft Pi (Modded)
Mission Center
Mission Planner
Monero GUI
More RAM
Mu
Mullvad
MuseScore
Nautilus
Nemo
Neofetch
NixNote2
Node.js
Notejot
Notepad ++
OBS Studio
Obsidian
Oh My Posh
Ollama GUI
OnionShare
OnlyOffice
Oomox Theme Designer
Open-Typer
OpenSCAD
OrcaSlicer
Organic Maps
PPSSPP (PSP emulator)
Pac-Man
Packet
PeaZip
Persepolis Download Manager
Pi Power Tools
Pi-Apps Terminal Plugin (bash)
PiGro
PiSafe
Pika Backup
Pinta
Pixelorama
Plasma Discover
Powerline-Shell
Processing IDE
Project OutFox
ProjectLibre
PrusaSlicer
Puffin
PyChess
Pycharm CE
QEMU
QR Code Reader
Reaper
Renoise (Demo)
RiiTag-RPC
Ruffle
RustDesk
Scratch 2
Scratch 3
Scrcpy
Screenshot
Shattered Pixel Dungeon
Shellbeats
Shotwell
Signal
SimpleScreenRecorder
Snap Store
Snapdrop
SolveSpace
Sonic Pi
Sound Recorder
SpeedTest-CLI
Sphero SDK
StackEdit
Steam
Steam Link
StepMania
Stunt Rally
Sublime Merge
Sublime Text
Synaptic
Syncthing
SysMonTask
System Monitoring Center
Systemd Pilot
Tabby
TeamViewer
Telegram
Tetris CLI
Thonny
Thunderbird
TiLP
Timeshift
Tor
Transmission
Turbowarp
USBImager
Ulauncher
Unciv
Update Buddy
VARA FM
VARA HF
VMware Horizon Client
VSCodium
VeraCrypt
Visual Studio Code
Vivaldi
WACUP (new WinAmp)
WPS Office
Waveform
Waydroid
Web Apps
Webcord
Wechat
WhatsApp
Windows Flasher
Windows Screensavers
Wine (x64)
Wine (x86)
Winlink Express
WorldPainter
XMRig
XSnow
Xfburn
Xtreme Download Manager
YouTube Player
Zen
Zoom
Zoom PWA
btop++
ckb-next
iDescriptor
jGRASP IDE
kitty
qBittorrent
template
tldr"
grep -v '/' <<<"$vfiles" | list_intersect "$list_apps_output"
#######################################
no stdout is produced with rust uutils (unexpected, differs from
coreutils)
gnu coreutils produces the expected stdout which is:
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
same thing as the vfiles input in this simplified example
--
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