Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread Sirius
On lör, 2024/09/07 at 10:50:36 -0500, Richard Owlett wrote: > This started with be exploring "regular expressions". > I discovered some tutorials that were using Bash in their samples. > One {lost the reference at the moment} was almost a match for a real > world problem I have. Bash has some nift

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread Max Nikulin
On 08/09/2024 04:22, Richard Owlett wrote: [My examples are from my experiments with re-formatting text at https://ebible.org/engkjvcpb/ for comfortable reading by fellow tri-focal wearing senior citizens - that I want to minimize the number of HTML tags & eliminating all CSS usage annoys some

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread Greg Wooledge
On Sat, Sep 07, 2024 at 22:00:27 +, Quaeryth wrote: > A query like "site:stackoverflow.com bash how to read file into variable" via > Google or DuckDuckGo (and maybe other search engines) usually points me in > the right direction. Good luck with your experiments! What kind of file? What kind

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread Quaeryth
>> When I've been in the same position, [...] too (e.g. the wiki you >> referenced). > > Problem is they are pedagogy oriented so to speak. I'm looking for > easier searchability (real word? ;). > >> Unsolicited thoughts: When it comes to regexes (regular expressions) [...] >> useful puzzle to so

Re: startx returns "Xf86EnableIO: failed to enable I/O ports 0000-03ff"

2024-09-07 Thread Dan Ritter
Pierre Willaime wrote: > Hi, > > After upgrading from Strech to Booworm (I know: not recommended to jump > versions), I have some trouble to start X server. > > startx returns this error: > > "Xf86EnableIO: failed to enable I/O ports -03ff (Operation not > permitted)". Stretch to Buster to

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread Richard Owlett
On 09/07/2024 03:46 PM, Quaeryth wrote: On 2024-09-07 11:50, Richard Owlett wrote: This started with be exploring "regular expressions". I discovered some tutorials that were using Bash in their samples. One {lost the reference at the moment} was almost a match for a real world problem I have.

startx returns "Xf86EnableIO: failed to enable I/O ports 0000-03ff"

2024-09-07 Thread Pierre Willaime
Hi, After upgrading from Strech to Booworm (I know: not recommended to jump versions), I have some trouble to start X server. startx returns this error: "Xf86EnableIO: failed to enable I/O ports -03ff (Operation not permitted)". GPU is Intel HD Graphics 2500 with CPU Intel Core i3-3220

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread Quaeryth
On 2024-09-07 11:50, Richard Owlett wrote: > This started with be exploring "regular expressions". > I discovered some tutorials that were using Bash in their samples. > One {lost the reference at the moment} was almost a match for a real > world problem I have. > > But I've not used Bash in eons a

Re: Why are module parameters under /etc/modprobe.d not respected?

2024-09-07 Thread ael
On Fri, Sep 06, 2024 at 10:00:20AM +0700, Max Nikulin wrote: > > Have you read log messages reported by journalctl? There is a systemd unit > to load modules, but I expect that this one should be autoloaded in response > to an udev event. Yes, I did try to find anything relevant using journalctl.

Re: Why are module parameters under /etc/modprobe.d not respected?

2024-09-07 Thread ael
On Thu, Sep 05, 2024 at 08:52:26PM +0200, Franco Martelli wrote: > > I am running debian testing, updated daily. > I'm on stable, so I can't help much > > > > > After yesterday's update, the kernel module snd_hda_intel is being > > loaded with the wrong (default) parameters. > Have you verified t

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread debian-user
Richard Owlett wrote: > This started with be exploring "regular expressions". > I discovered some tutorials that were using Bash in their samples. > One {lost the reference at the moment} was almost a match for a real > world problem I have. > > But I've not used Bash in eons and have forgotten

Re: tab completion being overenthusiastic

2024-09-07 Thread tomas
On Sat, Sep 07, 2024 at 10:07:00AM -0400, Greg Wooledge wrote: [...] > By the way, there's a trick you can use to find out where shell variables > are being defined: > > PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ilxc : 2>&1 | grep CDPATH Nifty! Thanks for this one. Cheers -- t signa

Re: BASH reference for those who are "learning by doing"?

2024-09-07 Thread David Christensen
On 9/7/24 08:50, Richard Owlett wrote: This started with be exploring "regular expressions". I discovered some tutorials that were using Bash in their samples. One {lost the reference at the moment} was almost a match for a real world problem I have. But I've not used Bash in eons and have for

BASH reference for those who are "learning by doing"?

2024-09-07 Thread Richard Owlett
This started with be exploring "regular expressions". I discovered some tutorials that were using Bash in their samples. One {lost the reference at the moment} was almost a match for a real world problem I have. But I've not used Bash in eons and have forgotten how to read a file into a single

Re: tab completion being overenthusiastic

2024-09-07 Thread eben
On 9/7/24 10:07, Greg Wooledge wrote: By the way, there's a trick you can use to find out where shell variables are being defined: PS4='+ $BASH_SOURCE:$FUNCNAME:$LINENO:' bash -ilxc : 2>&1 | grep CDPATH The -il options run an interactive login shell. If you need to check an interactive no

Re: tab completion being overenthusiastic

2024-09-07 Thread Greg Wooledge
On Sat, Sep 07, 2024 at 09:58:32 -0400, e...@gmx.us wrote: > Got it. It was in ~/.bash-vars which was sourced from ~/.bash_profile . Is > that a standard thing, or just some "brilliant" idea I had once upon a time? It's not a standard file. By the way, there's a trick you can use to find out wh

Re: tab completion being overenthusiastic

2024-09-07 Thread eben
On 9/7/24 09:37, e...@gmx.us wrote: On 9/7/24 09:26, Greg Wooledge wrote: On Sat, Sep 07, 2024 at 08:56:08 -0400, Eben King wrote: Hi. I have bash 5.2.15(1). When I cd into an empty directory, and type "cd ", the shell offers 178 possibilities. If I restrict it to an initial letter and hit

Re: tab completion being overenthusiastic

2024-09-07 Thread eben
On 9/7/24 09:26, Greg Wooledge wrote: On Sat, Sep 07, 2024 at 08:56:08 -0400, Eben King wrote: Hi. I have bash 5.2.15(1). When I cd into an empty directory, and type "cd ", the shell offers 178 possibilities. If I restrict it to an initial letter and hit once, I think the spurious offerings

Re: tab completion being overenthusiastic

2024-09-07 Thread Greg Wooledge
On Sat, Sep 07, 2024 at 08:56:08 -0400, Eben King wrote: > Hi. I have bash 5.2.15(1). When I cd into an empty directory, and type "cd > ", the shell offers 178 possibilities. If I restrict it to an > initial letter and hit once, I think the spurious offerings are from > $HOME. How can I make i

tab completion being overenthusiastic

2024-09-07 Thread Eben King
Hi. I have bash 5.2.15(1). When I cd into an empty directory, and type "cd ", the shell offers 178 possibilities. If I restrict it to an initial letter and hit once, I think the spurious offerings are from $HOME. How can I make it not do that and only offer me things I ask for? -- Unfortunat

Re: Re: Further on the DSELECT saga.....

2024-09-07 Thread Andy Smith
On Fri, Sep 06, 2024 at 09:32:18PM -0700, Juan Rincon Gonzalez wrote: > Opensource We've got lumps of it round the back!