[gentoo-user] Latest ncurses spews junk everywhere
Hello list, The latest update installed sys-libs/ncurses-6.4_p20230408. It caused large amounts of junk to appear in bash output, including wrong colours. https://bugs.gentoo.org/904263 refers. I've masked that version. You may want to too. -- Regards, Peter.
[gentoo-user] Converting shell globs to regular expressions
Greetings, does anybody know about some command to convert shell globs (shell pat- terns) into regular expressions? Back in the old Unix days there was a "glob" command, but "e-files" only turns up a GNU library. I am aware of Python's "fnmatch.translate()" function, but this -- of course -- returns a Python style regular expression which I can't use together with "grep" or "gawk". So using this function would require moving and converting the "grep" and "gawk" specific code from my Shell script into a separate Python script. This would be doable, if neces- sary, but I would prefer staying with just my Shell script. Any pointers heartily welcome :-) Sincerely, Rainer
Re: [gentoo-user] xfce4 automount usb doesn't work
On 11/04/2023 18:19, the...@sys-concept.com wrote: Yes, when the usb-icon appears on desktop, right clicking on it allows me to mount it. On the system that works correctly, when I insert the USB I get: Dunno as I'd define it as "works correctly". Works as desired, sure. My system (KDE) throws a pop-up up that says "what do you want to do?". That, I think, is the default with which I am quite happy. I'd rather (for *KNOWN* usb-sticks) put an entry in fstab. Cheers, Wol
Re: [gentoo-user] xfce4 automount usb doesn't work
On Thu, 13 Apr 2023 21:22:42 +0100, Wol wrote: > Dunno as I'd define it as "works correctly". Works as desired, sure. My > system (KDE) throws a pop-up up that says "what do you want to do?". > That, I think, is the default with which I am quite happy. > > I'd rather (for *KNOWN* usb-sticks) put an entry in fstab. KDE has an option to automount known devices when they are plugged in or on boot, while others give the popup. -- Neil Bothwick The horizon of many people is a circle with a radius of zero. They call this their point of view. -- Albert Einstein pgpdM4DqEUT3V.pgp Description: OpenPGP digital signature
Re: [gentoo-user] Portage 'Completed (m of n)' messages
On 11/04/2023 15:24, Neil Bothwick wrote: On Tue, 11 Apr 2023 11:59:08 +0100, Peter Humphrey wrote: What does the panel think of these new status messages from portage (~amd64)? At first I thought "that's useful", but after a while I concluded that it just adds to the clutter on the screen and actually impedes my ability to follow progress. I like it. Previously, I had to wait for the completed counter to increment before knowing that installation of a package was complete. It's handy if you need to interrupt an emerge session and don't want to do it just before Chromium has finished installing :-O Perhaps I'm just being a Grumpy Old Man (tm). See above, some Grumpy Old Men like it ;-) I've just configured konsole to display the current command in the sense of it displays "emerging x of y package-name" or similar. So that provides me a nice progress counter, and I only look at the contents of the console if that's not enough. Cheers, Wol
Re: [gentoo-user] Converting shell globs to regular expressions
>Greetings, > >does anybody know about some command to convert shell globs (shell pat- >terns) into regular expressions? Back in the old Unix days there was a >"glob" command, but "e-files" only turns up a GNU library. Would one of the functions in dev-perl/Text-Glob do what you need? DaveF > >I am aware of Python's "fnmatch.translate()" function, but this -- of >course -- returns a Python style regular expression which I can't use >together with "grep" or "gawk". So using this function would require >moving and converting the "grep" and "gawk" specific code from my Shell >script into a separate Python script. This would be doable, if neces- >sary, but I would prefer staying with just my Shell script. > >Any pointers heartily welcome :-) > >Sincerely, > Rainer >
Re: [gentoo-user] Converting shell globs to regular expressions
On Thu, 2023-04-13 at 18:27 +0200, Dr Rainer Woitok wrote: > Greetings, > > does anybody know about some command to convert shell globs (shell pat- > terns) into regular expressions? > What exactly are you trying to do? This sounds like an XY problem (https://xyproblem.info/).