Re: why bash completion sometimes doesn't work?

2022-01-04 Thread David Wright
ion works well > > > > i think "ip a" can list wireless device > > Well, it sounds like _configured_interfaces on your system only finds > "lo", whereas _available_interfaces finds a larger set. > > _configured_interfaces is apparently defined in &g

Re: why bash completion sometimes doesn't work?

2022-01-03 Thread Greg Wooledge
On Tue, Jan 04, 2022 at 02:39:24AM +, Long Wind wrote: > > Thank Greg Wooledge! > > it seems solved, > there's more whitespace between iface and device name, > i correct it to just one space, and bash completion works for ifup/ifdown Might be worth a bug report.

Re: why bash completion sometimes doesn't work?

2022-01-03 Thread Long Wind
Thank Greg Wooledge! it seems solved, there's more whitespace between iface and device name, i correct it to just one space, and bash completion works for ifup/ifdown

Re: why bash completion sometimes doesn't work?

2022-01-03 Thread Greg Wooledge
sounds like _configured_interfaces on your system only finds "lo", whereas _available_interfaces finds a larger set. _configured_interfaces is apparently defined in /usr/share/bash-completion/bash_completion and includes this code: if [[ -f /etc/debian_version ]]; then # Deb

Re: why bash completion sometimes doesn't work?

2022-01-03 Thread David Wright
On Mon 03 Jan 2022 at 20:12:50 (+), Long Wind wrote: > Thank Greg!  i use bash 5.0-4 and bash-completion 1:2.8-6 > all bash setting for root is default except 3 alias > >  alias rm='rm -i' >  alias cp='cp -i' >  alias mv='mv -i' >

Re: why bash completion sometimes doesn't work?

2022-01-03 Thread Greg Wooledge
On Mon, Jan 03, 2022 at 08:12:50PM +, Long Wind wrote: > Thank Greg!  i use bash 5.0-4 and bash-completion 1:2.8-6 > i type "ifdown wl" and press Tab, nothing happens > there's only one wireless device in /etc/network/interfaces > it shall complete command to "

Re: why bash completion sometimes doesn't work?

2022-01-03 Thread Richmond
Greg Wooledge writes: > By default, Debian installs the bash-completion package, which contains > programmable completions for a whole bunch of commands. This is > enabled by dotting in a file from ~/.bashrc (the code to do this is > at the end of /etc/skel/.bashrc, which becomes

Re: why bash completion sometimes doesn't work?

2022-01-03 Thread Greg Wooledge
ently there is (on your system) for "ifdown" though. By default, Debian installs the bash-completion package, which contains programmable completions for a whole bunch of commands. This is enabled by dotting in a file from ~/.bashrc (the code to do this is at the end of /etc/skel/.ba

Re: bash completion and spaces

2021-04-26 Thread Victor Sudakov
davidson wrote: > > > > I actually looked with `hd` and expected to see 0x20 there, but > > somehow see none of it: > > > > $ echo $COMP_WORDBREAKS | hd > > 22 27 40 3e 3c 3d 3b 7c 26 28 3a 0a |"'@><=;|&(:.| > > 000c > > Above I count 12 characters piped from echo to

Re: bash completion and spaces

2021-04-26 Thread David Wright
On Mon 26 Apr 2021 at 18:27:57 (+), davidson wrote: > On Mon, 26 Apr 2021 davidson wrote: > > Two corrections to previous message. > > % Proposal D > > > > $ cat ~/.inputrc # a literal Shift-TAB is inside the double quotes > > " ": menu-complete > > 2. The '^[' above is an artifact of...

Re: bash completion and spaces

2021-04-26 Thread davidson
On Mon, 26 Apr 2021 davidson wrote: Two corrections to previous message. [dd] % Proposal C In that case, you could get all but the last argument completed like so: $ complete -A hostname -P '-h ' -S ' -s' 1. At the end of the line above, the command name is missing. $ complete -A hostnam

Re: bash completion and spaces

2021-04-26 Thread davidson
On Mon, 26 Apr 2021 Victor Sudakov wrote: davidson wrote: On Sat, 24 Apr 2021 Victor Sudakov wrote: David Wright wrote: I have an example app which can be run only as "app3 -h test1 -s foo" or "app3 -h test2 -s bar". So I decided to provide it with a small manual completion for convenience.

Re: bash completion and spaces

2021-04-26 Thread Greg Wooledge
On Mon, Apr 26, 2021 at 01:49:42PM +0200, Thomas Schmitt wrote: > > $ string=' hithere ' > > [...] > > $ printf '<%s> ' $string ; echo > > > > As C programmer i am now tempted to scream. > (This command should really not have the same name as printf(3).) There are a few changes between

Re: bash completion and spaces

2021-04-26 Thread Thomas Schmitt
Hi, Greg Wooledge wrote: > Not the parser, technically. The correct term is word splitting. Always good to know which part of the shell tries to bite me. :)) > $ string=' hithere ' > [...] > $ printf '<%s> ' $string ; echo > As C programmer i am now tempted to scream. (This command

Re: bash completion and spaces

2021-04-26 Thread Greg Wooledge
On Mon, Apr 26, 2021 at 12:04:45PM +0200, Thomas Schmitt wrote: > > what accounts for the three missing characters (namely SPACE, TAB, > > and NEWLINE)? > > They get eaten by the shell parser if you do not use quotation marks: > > $ echo $COMP_WORDBREAKS | wc -c > 11 > $ echo "$COMP_WORDBRE

Re: bash completion and spaces

2021-04-26 Thread Thomas Schmitt
Hi, > what accounts for the three missing characters (namely SPACE, TAB, > and NEWLINE)? They get eaten by the shell parser if you do not use quotation marks: $ echo $COMP_WORDBREAKS | wc -c 11 $ echo "$COMP_WORDBREAKS" | wc -c 14 So to see all characters (including the newline added by

Re: bash completion and spaces

2021-04-26 Thread davidson
On Mon, 26 Apr 2021 Victor Sudakov wrote: davidson wrote: On Sat, 24 Apr 2021 Victor Sudakov wrote: [dd] BTW on my current Debian system I don't see the space character in $COMP_WORDBREAKS. If you have xxd installed, what does xxd show you? I actually looked with `hd` and expected to see

Re: bash completion and spaces

2021-04-25 Thread Victor Sudakov
rate a completion list every time I > > enter "app3", probably it can be done with aliases as well? > > I think aliases can only work at the level of the entire command line, > ie the aliases must have been defined by the time you start typing the > line (which is why

Re: bash completion and spaces

2021-04-25 Thread Victor Sudakov
davidson wrote: > On Sat, 24 Apr 2021 Victor Sudakov wrote: > > David Wright wrote: > > > > > > > > > > > > I have an example app which can be run only as "app3 -h test1 -s > > > > > > foo" or "app3 -h test2 -s bar". So I decided to provide it with > > > > > > a small manual completion for conveni

Re: bash completion and spaces

2021-04-24 Thread David Wright
t; > > "-h test1 -s foo" or "-h test2 -s bar" as a whole? > > > > > > > > > > I would not like to make all this too complicated, write complex > > > > > completion funcions if possible. A static (-W) completion would be &g

Re: bash completion and spaces

2021-04-24 Thread davidson
Perhaps: alias app3a='app3 -h test1 -s foo' alias app3b='app3 -h test2 -s bar' No, not alias, I'd like to do it via bash completion. I may want to make it dynamic eventually, the problem is in the spaces. It's claimed that you can overcome this, in https://stackov

Re: bash completion and spaces

2021-04-23 Thread Victor Sudakov
> Can you please give a hint how to make it complete "app3" with either > > > > "-h test1 -s foo" or "-h test2 -s bar" as a whole? > > > > > > > > I would not like to make all this too complicated, write complex > > > > compl

Re: bash completion and spaces

2021-04-23 Thread David Wright
; > > Can you please give a hint how to make it complete "app3" with either > > > "-h test1 -s foo" or "-h test2 -s bar" as a whole? > > > > > > I would not like to make all this too complicated, write complex > > > completion

Re: bash completion and spaces

2021-04-22 Thread Victor Sudakov
t; I would not like to make all this too complicated, write complex > > completion funcions if possible. A static (-W) completion would be even > > better. > > Perhaps: > > alias app3a='app3 -h test1 -s foo' > alias app3b='app3 -h test2 -s bar' No, not alias, I'd like to do it via bash completion. I may want to make it dynamic eventually, the problem is in the spaces. -- Victor Sudakov VAS4-RIPE http://vas.tomsk.ru/ 2:5005/49@fidonet signature.asc Description: PGP signature

Re: bash completion and spaces

2021-04-22 Thread David Wright
On Thu 22 Apr 2021 at 15:28:36 (+0700), Victor Sudakov wrote: > > I have an example app which can be run only as "app3 -h test1 -s foo" or > "app3 -h test2 -s bar". So I decided to provide it with a small manual > completion for convenience. > > [vas@test2 ~]$ ./list.sh > -h test1 -s foo > -h te

bash completion and spaces

2021-04-22 Thread Victor Sudakov
Dear Colleagues, I have an example app which can be run only as "app3 -h test1 -s foo" or "app3 -h test2 -s bar". So I decided to provide it with a small manual completion for convenience. [vas@test2 ~]$ ./list.sh -h test1 -s foo -h test2 -s bar [vas@test2 ~]$ complete -C ./list.sh app3 [vas@tes

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-21 Thread Brian
On Sat 20 Jun 2020 at 16:51:12 -0600, Tom Dial wrote: > > > On 6/20/20 13:17, Andrei POPESCU wrote: > > > On Sb, 20 iun 20, 18:37:31, Brian wrote: > >> On Sat 20 Jun 2020 at 17:53:56 +0300, Andrei POPESCU wrote: > >> > >>> On Vi, 19 iun 20, 15:12:27, Tom Dial wrote: > > I notice that

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-20 Thread Tom Dial
On 6/20/20 13:17, Andrei POPESCU wrote: > On Sb, 20 iun 20, 18:37:31, Brian wrote: >> On Sat 20 Jun 2020 at 17:53:56 +0300, Andrei POPESCU wrote: >> >>> On Vi, 19 iun 20, 15:12:27, Tom Dial wrote: I notice that tasksel (= /usr/bin/tasksel) is a Perl program in which it appears th

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-20 Thread Andrei POPESCU
On Sb, 20 iun 20, 18:37:31, Brian wrote: > On Sat 20 Jun 2020 at 17:53:56 +0300, Andrei POPESCU wrote: > > > On Vi, 19 iun 20, 15:12:27, Tom Dial wrote: > > > > > > I notice that tasksel (= /usr/bin/tasksel) is a Perl program in which it > > > appears the "cmd" to be executed once selections are

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-20 Thread Brian
On Sat 20 Jun 2020 at 17:53:56 +0300, Andrei POPESCU wrote: > On Vi, 19 iun 20, 15:12:27, Tom Dial wrote: > > > > I notice that tasksel (= /usr/bin/tasksel) is a Perl program in which it > > appears the "cmd" to be executed once selections are made (line 24 from > > the end) is > > > > apt-get -

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-20 Thread Andrei POPESCU
On Vi, 19 iun 20, 09:30:30, David Wright wrote: > > One other benefit: the knowledge and skills you gain in this process > will be far more transferable than a deeper understanding of the d-i. > After all, I haven't gained the impression that you're in technical > charge of rolling out, say, 5000

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-20 Thread Andrei POPESCU
On Vi, 19 iun 20, 15:12:27, Tom Dial wrote: > > I notice that tasksel (= /usr/bin/tasksel) is a Perl program in which it > appears the "cmd" to be executed once selections are made (line 24 from > the end) is > > apt-get -q -y -o APT::Install-Recommends=true -o \ > APT::Get::AutomaticRemove=true

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Brian
On Fri 19 Jun 2020 at 15:12:27 -0600, Tom Dial wrote: > I notice that tasksel (= /usr/bin/tasksel) is a Perl program in which it > appears the "cmd" to be executed once selections are made (line 24 from > the end) is > > apt-get -q -y -o APT::Install-Recommends=true -o \ > APT::Get::AutomaticRemo

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Marco Möller
On 19.06.20 23:12, Tom Dial wrote: On 6/19/20 09:28, Brian wrote: On Thu 18 Jun 2020 at 14:15:00 -0500, David Wright wrote: On Wed 17 Jun 2020 at 20:48:50 (+0100), Brian wrote: AFAICT, it appears Recommends are *always* installed using the Installer, irrespective of preseeding. Not *someti

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Tom Dial
On 6/19/20 09:28, Brian wrote: > On Thu 18 Jun 2020 at 14:15:00 -0500, David Wright wrote: > >> On Wed 17 Jun 2020 at 20:48:50 (+0100), Brian wrote: >>> >>> AFAICT, it appears Recommends are *always* installed using the Installer, >>> irrespective of preseeding. Not *sometimes*. >> >> One or tw

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Brian
On Fri 19 Jun 2020 at 06:23:00 -0500, Richard Owlett wrote: > On 06/18/2020 10:25 PM, Andrei POPESCU wrote: > > On Mi, 17 iun 20, 06:51:18, Richard Owlett wrote: > > > > > > The purpose is to determine if I want to do future installs debootstrap. > > > I attempted to use debootstrap a few years a

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Andy Smith
Hello, On Fri, Jun 19, 2020 at 09:30:30AM -0500, David Wright wrote: > Why not start with a minimal working system, even adding a few > select tools, and then see what isn't necessary for your own > minimalist system. Now you can try removing them from a *working* > system and, should you go too f

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Brian
On Thu 18 Jun 2020 at 14:15:00 -0500, David Wright wrote: > On Wed 17 Jun 2020 at 20:48:50 (+0100), Brian wrote: > > > > AFAICT, it appears Recommends are *always* installed using the Installer, > > irrespective of preseeding. Not *sometimes*. > > One or two counterexamples are: > > openssh-server

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Brian
On Fri 19 Jun 2020 at 06:15:48 +0300, Andrei POPESCU wrote: > On Mi, 17 iun 20, 20:48:50, Brian wrote: > > > > debootstrap is only run during the installation of the base system. It > > installs recommended packages. That is in contradiction to what the > > Manual says. > > For "regular" use deb

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread David Wright
On Fri 19 Jun 2020 at 06:23:00 (-0500), Richard Owlett wrote: > On 06/18/2020 10:25 PM, Andrei POPESCU wrote: > > On Mi, 17 iun 20, 06:51:18, Richard Owlett wrote: > > > > > > The purpose is to determine if I want to do future installs debootstrap. > > > I attempted to use debootstrap a few years

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-19 Thread Richard Owlett
On 06/18/2020 10:25 PM, Andrei POPESCU wrote: On Mi, 17 iun 20, 06:51:18, Richard Owlett wrote: The purpose is to determine if I want to do future installs debootstrap. I attempted to use debootstrap a few years ago and understand it will take some time/effort to learn it. If you are going to

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread Andrei POPESCU
On Mi, 17 iun 20, 06:51:18, Richard Owlett wrote: > > The purpose is to determine if I want to do future installs debootstrap. > I attempted to use debootstrap a few years ago and understand it will take > some time/effort to learn it. If you are going to start from scratch you should consider mm

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread Andrei POPESCU
On Mi, 17 iun 20, 20:48:50, Brian wrote: > > debootstrap is only run during the installation of the base system. It > installs recommended packages. That is in contradiction to what the > Manual says. For "regular" use deboostrap does not install Recommends. According to the manpage it does have

Re: bash-completion pros/cons

2020-06-18 Thread David Wright
Andersson wrote: > >>>> On Tue, Jun 16, 2020 at 9:48 PM David Wright > >>>> wrote: > >>>>> Where bash-completion does get in the way for me is, for example, > >>>>> where you download a file that's, say, a PDF but it arrives v

Re: bash-completion pros/cons

2020-06-18 Thread Darac Marjal
>>>> wrote: >>>>> Where bash-completion does get in the way for me is, for example, >>>>> where you download a file that's, say, a PDF but it arrives via wget >>>>> called, say, index_0001.3872359.html, for whatever reason. >>>

Re: bash-completion pros/cons

2020-06-18 Thread David Wright
On Thu 18 Jun 2020 at 20:38:15 (+0100), Darac Marjal wrote: > On 18/06/2020 20:15, David Wright wrote: > > On Wed 17 Jun 2020 at 10:04:19 (+0200), Anders Andersson wrote: > >> On Tue, Jun 16, 2020 at 9:48 PM David Wright > >> wrote: > >>> Where bash-comple

Re: bash-completion pros/cons

2020-06-18 Thread Darac Marjal
On 18/06/2020 20:15, David Wright wrote: > On Wed 17 Jun 2020 at 10:04:19 (+0200), Anders Andersson wrote: >> On Tue, Jun 16, 2020 at 9:48 PM David Wright >> wrote: >>> Where bash-completion does get in the way for me is, for example, >>> where you download

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread David Wright
On Thu 18 Jun 2020 at 06:48:26 (-0500), Richard Owlett wrote: > On 06/18/2020 03:13 AM, to...@tuxteam.de wrote: > > On Thu, Jun 18, 2020 at 12:53:55AM +0100, Brian wrote: > > > > [...] > > > > > No you don't. A user preseeds with > > > > > >recommends=false > > > > > > But you know for a fa

Re: bash-completion pros/cons

2020-06-18 Thread David Wright
On Wed 17 Jun 2020 at 10:04:19 (+0200), Anders Andersson wrote: > On Tue, Jun 16, 2020 at 9:48 PM David Wright wrote: > > Where bash-completion does get in the way for me is, for example, > > where you download a file that's, say, a PDF but it arrives via wget > > calle

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread David Wright
On Wed 17 Jun 2020 at 20:48:50 (+0100), Brian wrote: > On Wed 17 Jun 2020 at 14:15:05 -0500, David Wright wrote: > > On Wed 17 Jun 2020 at 18:15:49 (+0100), Brian wrote: > > > > On Wed, Jun 17, 2020 at 06:51:18AM -0500, Richard Owlett wrote: > > > > > > > Clarification of my immediate goal: > > >

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread tomas
On Thu, Jun 18, 2020 at 07:50:39PM +0100, Brian wrote: > On Thu 18 Jun 2020 at 14:41:19 +0200, to...@tuxteam.de wrote: > > > On Thu, Jun 18, 2020 at 06:48:26AM -0500, Richard Owlett wrote: [...] > > > 2. Do I "know" something that is not actually true? > > > > That is anyone's guess. I know I

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread Brian
On Thu 18 Jun 2020 at 14:41:19 +0200, to...@tuxteam.de wrote: > On Thu, Jun 18, 2020 at 06:48:26AM -0500, Richard Owlett wrote: > > On 06/18/2020 03:13 AM, to...@tuxteam.de wrote: > > >On Thu, Jun 18, 2020 at 12:53:55AM +0100, Brian wrote: > > > > > >[...] > > > > > >>No you don't. A user preseeds

Re: bash-completion pros/cons (was: Re: Need commands)

2020-06-18 Thread l0f4r0
Hi, 18 juin 2020 à 09:00 de david...@freevolt.org: > On Tue, 16 Jun 2020, l0f...@tuta.io wrote: > >> 16 juin 2020 à 10:47 de david...@freevolt.org: >> >>> I hear some people find bash-completion helpful. Personally, though, >>> no. Do not want. >>> &g

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread tomas
On Thu, Jun 18, 2020 at 06:48:26AM -0500, Richard Owlett wrote: > On 06/18/2020 03:13 AM, to...@tuxteam.de wrote: > >On Thu, Jun 18, 2020 at 12:53:55AM +0100, Brian wrote: > > > >[...] > > > >>No you don't. A user preseeds with > >> > >> recommends=false > >> > >>But you know for a fact that this

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread Richard Owlett
On 06/18/2020 03:13 AM, to...@tuxteam.de wrote: On Thu, Jun 18, 2020 at 12:53:55AM +0100, Brian wrote: [...] No you don't. A user preseeds with recommends=false But you know for a fact that this doesn't work. Therefore, an answer to your enquiry > Is there a way to totally disable rec

Re: bash-completion pros/cons (was: Re: Need commands)

2020-06-18 Thread tomas
On Thu, Jun 18, 2020 at 07:25:40AM +, davidson wrote: > On Tue, 16 Jun 2020, l0f...@tuta.io wrote: [...] > >Maybe sometimes completion is not working as it should, nothing is > >perfect, but globally I think that it saves time more than its > >wastes. > > For those it suits, I am glad the pa

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-18 Thread tomas
On Thu, Jun 18, 2020 at 12:53:55AM +0100, Brian wrote: [...] > No you don't. A user preseeds with > > recommends=false > > But you know for a fact that this doesn't work. Therefore, an answer to > your enquiry > > > Is there a way to totally disable recommends when installing Debian? > >

Re: bash-completion pros/cons (was: Re: Need commands)

2020-06-18 Thread davidson
On Tue, 16 Jun 2020, l0f...@tuta.io wrote: [dd] 16 juin 2020 à 13:23 de wool...@eeg.ccf.org It's flaky and full of errors. (Many of these errors end up on the bash mailing lists as bug reports in bash, but nope, they're from bash-completion.) It bloats bash, using a lot of memory,

Re: bash-completion pros/cons (was: Re: Need commands)

2020-06-18 Thread davidson
On Tue, 16 Jun 2020, l0f...@tuta.io wrote: 16 juin 2020 à 10:47 de david...@freevolt.org: I hear some people find bash-completion helpful. Personally, though, no. Do not want. Interesting/intriguing point of view. I will remember this polite new way to call somebody a weirdo. Why would

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread Brian
On Wed 17 Jun 2020 at 06:31:16 -0500, Richard Owlett wrote: > On 06/17/2020 06:12 AM, to...@tuxteam.de wrote: > > On Wed, Jun 17, 2020 at 04:53:45AM -0500, Richard Owlett wrote: > > > On 06/17/2020 03:34 AM, to...@tuxteam.de wrote: > > > > [snip] > > > > > > > > A couple of those led me to disabl

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread Brian
On Wed 17 Jun 2020 at 14:15:05 -0500, David Wright wrote: > On Wed 17 Jun 2020 at 18:15:49 (+0100), Brian wrote: > > > On Wed, Jun 17, 2020 at 06:51:18AM -0500, Richard Owlett wrote: > > > > > Clarification of my immediate goal: > > > > > > > > Using the ISO of DVD1 I wish to install Debian with

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread David Wright
On Wed 17 Jun 2020 at 18:15:49 (+0100), Brian wrote: > > On Wed, Jun 17, 2020 at 06:51:18AM -0500, Richard Owlett wrote: > > > Clarification of my immediate goal: > > > > > > Using the ISO of DVD1 I wish to install Debian with "recommends" > > > disabled during the installation process. > Sectio

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread Brian
On Wed 17 Jun 2020 at 14:26:31 +0200, to...@tuxteam.de wrote: > On Wed, Jun 17, 2020 at 06:51:18AM -0500, Richard Owlett wrote: > > [...] > > > Clarification of my immediate goal: > > > > Using the ISO of DVD1 I wish to install Debian with "recommends" > > disabled during the installation proce

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread Richard Owlett
On 06/17/2020 07:26 AM, to...@tuxteam.de wrote: On Wed, Jun 17, 2020 at 06:51:18AM -0500, Richard Owlett wrote: [...] Clarification of my immediate goal: Using the ISO of DVD1 I wish to install Debian with "recommends" disabled during the installation process. I can't give you an authoritat

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread tomas
On Wed, Jun 17, 2020 at 06:51:18AM -0500, Richard Owlett wrote: [...] > Clarification of my immediate goal: > > Using the ISO of DVD1 I wish to install Debian with "recommends" > disabled during the installation process. I can't give you an authoritative answer for this one, sorry. > The purpo

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread Richard Owlett
On 06/17/2020 06:36 AM, to...@tuxteam.de wrote: On Wed, Jun 17, 2020 at 06:31:16AM -0500, Richard Owlett wrote: On 06/17/2020 06:12 AM, to...@tuxteam.de wrote: On Wed, Jun 17, 2020 at 04:53:45AM -0500, Richard Owlett wrote: On 06/17/2020 03:34 AM, to...@tuxteam.de wrote: [snip] A couple of t

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread tomas
On Wed, Jun 17, 2020 at 06:31:16AM -0500, Richard Owlett wrote: > On 06/17/2020 06:12 AM, to...@tuxteam.de wrote: > >On Wed, Jun 17, 2020 at 04:53:45AM -0500, Richard Owlett wrote: > >>On 06/17/2020 03:34 AM, to...@tuxteam.de wrote: > >>>[snip] > >>> > >>>A couple of those led me to disable recomme

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread Richard Owlett
On 06/17/2020 06:12 AM, to...@tuxteam.de wrote: On Wed, Jun 17, 2020 at 04:53:45AM -0500, Richard Owlett wrote: On 06/17/2020 03:34 AM, to...@tuxteam.de wrote: [snip] A couple of those led me to disable recommends completely. It seems I'm a freak monster or sometning ;-@ Is there a way to t

Re: Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread tomas
On Wed, Jun 17, 2020 at 04:53:45AM -0500, Richard Owlett wrote: > On 06/17/2020 03:34 AM, to...@tuxteam.de wrote: > >[snip] > > > >A couple of those led me to disable recommends completely. It seems > >I'm a freak monster or sometning ;-@ > > > > Is there a way to totally disable recommends when i

Disabling recommends - was [Re: bash-completion pros/cons]

2020-06-17 Thread Richard Owlett
On 06/17/2020 03:34 AM, to...@tuxteam.de wrote: [snip] A couple of those led me to disable recommends completely. It seems I'm a freak monster or sometning ;-@ Is there a way to totally disable recommends when installing Debian? I wish to set up a machine for experimenting to find out what I

Re: bash-completion pros/cons

2020-06-17 Thread tomas
On Tue, Jun 16, 2020 at 02:47:38PM -0500, David Wright wrote: [...] > Where bash-completion does get in the way for me is, for example, > where you download a file that's, say, a PDF but it arrives via wget > called, say, index_0001.3872359.html, for whatever reason. > So you

Re: bash-completion pros/cons

2020-06-17 Thread Anders Andersson
On Tue, Jun 16, 2020 at 9:48 PM David Wright wrote: > Where bash-completion does get in the way for me is, for example, > where you download a file that's, say, a PDF but it arrives via wget > called, say, index_0001.3872359.html, for whatever reason. > So you type xpdf inde

Re: bash-completion pros/cons

2020-06-16 Thread David Wright
n that directory) > and I had to backspace by some considerable amount to get to where I'd > wanted to be. It seems that I have to press [TAB] more than once for it to complete the actual filename, but do use [ESC] [BACKSPACE] to rubout by word rather than character. But in any case,

Re: bash-completion pros/cons

2020-06-16 Thread The Wanderer
On 2020-06-16 at 08:57, to...@tuxteam.de wrote: > On Tue, Jun 16, 2020 at 01:53:59PM +0200, l0f...@tuta.io wrote: > > [...] > >> Maybe sometimes completion is not working as it should, nothing is >> perfect, but globally I think that it saves time more than its >> wastes. > > Then just use it a

Re: bash-completion pros/cons (was: Re: Need commands)

2020-06-16 Thread tomas
On Tue, Jun 16, 2020 at 01:53:59PM +0200, l0f...@tuta.io wrote: [...] > Maybe sometimes completion is not working as it should, nothing is perfect, > but globally I think that it saves time more than its wastes. Then just use it and be happy. And just accept that some (me, among others) are hap

Re: bash-completion pros/cons (was: Re: Need commands)

2020-06-16 Thread l0f4r0
Hi Greg, 16 juin 2020 à 13:23 de wool...@eeg.ccf.org > It's flaky and full of errors. (Many of these errors end up on the > bash mailing lists as bug reports in bash, but nope, they're from > bash-completion.) It bloats bash, using a lot of memory, and taking > extra C

Re: bash-completion pros/cons (was: Re: Need commands)

2020-06-16 Thread Greg Wooledge
On Tue, Jun 16, 2020 at 12:54:58PM +0200, l0f...@tuta.io wrote: > Hi, > > 16 juin 2020 à 10:47 de david...@freevolt.org: > > > I hear some people find bash-completion helpful. Personally, though, > > no. Do not want. > > > Interesting/intriguing point of

bash-completion pros/cons (was: Re: Need commands)

2020-06-16 Thread l0f4r0
Hi, 16 juin 2020 à 10:47 de david...@freevolt.org: > I hear some people find bash-completion helpful. Personally, though, > no. Do not want. > Interesting/intriguing point of view. Why would someone not be interested in autocompletion please?  Best regards, l0f4r0

Re: ssh config "Include" and bash completion

2018-05-14 Thread Javier Barroso
Hello Greg, On Mon, May 14, 2018 at 3:35 PM, Greg Wooledge wrote: > On Mon, May 14, 2018 at 03:29:22PM +0200, Javier Barroso wrote: >> Maybe you can improve the script talking / sendind pull request? with >> żupstream? żhttps://github.com/scop/bash-completion? >> >> Th

Re: ssh config "Include" and bash completion

2018-05-14 Thread Greg Wooledge
On Mon, May 14, 2018 at 03:29:22PM +0200, Javier Barroso wrote: > Maybe you can improve the script talking / sendind pull request? with > ¿upstream? ¿https://github.com/scop/bash-completion? > > Thank you ! Not likely to happen. > == OFF TOPIC == > An annoying bug on debia

Re: ssh config "Include" and bash completion

2018-05-14 Thread Javier Barroso
erate over the "array" using an unquoted expansion. > > Code like this is one reason why I do not use bash-completion. Any time > it doesn't fail is just a lucky coincidence. > > In this particular instance, it "works" so long as each pathname in > sed

Re: ssh config "Include" and bash completion

2018-05-14 Thread Greg Wooledge
correctly, there'll be one pathname per line. > for i in ${included[@]}; do But then the function attempts to treat the string variable as an array, and then attempts to iterate over the "array" using an unquoted expansion. Code like this is one reason why I do not use bash-com

Re: ssh config "Include" and bash completion

2018-05-14 Thread Richard Hector
On 14/05/18 21:51, Javier Barroso wrote: > Hello Hector, > > It work for me: > > $ grep "Include\|testing" /etc/ssh/ssh_config ; cat /etc/ssh/ssh.d/test > Include /etc/ssh/ssh.d/test > Host testing > Hostname 1.1.1.1 > > $ ssh test => testing > $ d

Re: ssh config "Include" and bash completion

2018-05-14 Thread Richard Hector
On 14/05/18 18:09, Richard Hector wrote: > Hi all, > > I recently started using the Include directive in my .ssh/config file - > so all the definitions are now in .ssh/config.d/. > > Now bash completion of hostnames no longer works. Is this expected > behaviour? Anyo

Re: ssh config "Include" and bash completion

2018-05-14 Thread Javier Barroso
On Mon, May 14, 2018 at 11:51 AM, Javier Barroso wrote: > Hello Hector, > > It work for me: > > $ grep "Include\|testing" /etc/ssh/ssh_config ; cat /etc/ssh/ssh.d/test > Include /etc/ssh/ssh.d/test > Host testing > Hostname 1.1.1.1 > > $ ssh test => te

Re: ssh config "Include" and bash completion

2018-05-14 Thread Javier Barroso
Hello Hector, It work for me: $ grep "Include\|testing" /etc/ssh/ssh_config ; cat /etc/ssh/ssh.d/test Include /etc/ssh/ssh.d/test Host testing Hostname 1.1.1.1 $ ssh test => testing $ dpkg -l bash-completion Deseado=desconocido(U)/Instalar/eliminaR/Purgar/retener(H) | Estado=No/

Re: ssh config "Include" and bash completion

2018-05-14 Thread Richard Hector
On 14/05/18 20:49, john doe wrote: > On 5/14/2018 8:09 AM, Richard Hector wrote: >> Hi all, >> >> I recently started using the Include directive in my .ssh/config file - >> so all the definitions are now in .ssh/config.d/. >> >> Now bash completion of host

Re: ssh config "Include" and bash completion

2018-05-14 Thread john doe
On 5/14/2018 8:09 AM, Richard Hector wrote: Hi all, I recently started using the Include directive in my .ssh/config file - so all the definitions are now in .ssh/config.d/. Now bash completion of hostnames no longer works. Is this expected behaviour? Anyone know how to fix it, without

ssh config "Include" and bash completion

2018-05-13 Thread Richard Hector
Hi all, I recently started using the Include directive in my .ssh/config file - so all the definitions are now in .ssh/config.d/. Now bash completion of hostnames no longer works. Is this expected behaviour? Anyone know how to fix it, without reverting to a single file? I couldn't work ou

Re: bash-completion, tab and ambiguous globs

2016-02-19 Thread The Wanderer
On 2016-02-19 at 22:13, Chris Bannister wrote: > On Wed, Feb 17, 2016 at 10:14:06AM +0100, Nicolas George wrote: > >> Le nonidi 29 pluviôse, an CCXXIV, to...@tuxteam.de a écrit : >> >>> It can be creepily smart, like knowing the branches in your >>> project when you do git checkout bla or things

Re: bash-completion, tab and ambiguous globs

2016-02-19 Thread Chris Bannister
On Wed, Feb 17, 2016 at 10:14:06AM +0100, Nicolas George wrote: > Le nonidi 29 pluviôse, an CCXXIV, to...@tuxteam.de a écrit : > > It can be creepily smart, like knowing the branches in your project > > when you do git checkout bla or things like that. Not bad. > > You mean what zsh already did in

Re: bash-completion, tab and ambiguous globs

2016-02-19 Thread The Wanderer
letion on which I had come to rely, so I always turn it off >> on my machines. > > By "turning off" bash-completion, do you mean uninstalling it or > something less radical ? It varies. In some cases I've uninstalled it, in other cases I've modified a config fi

Re: bash-completion, tab and ambiguous globs

2016-02-19 Thread Jean-Baptiste Thomas
ines. By "turning off" bash-completion, do you mean uninstalling it or something less radical ?

Re: bash-completion, tab and ambiguous globs

2016-02-18 Thread Curt
On 2016-02-18, The Wanderer wrote: > > I'm not sure I understand. How is this different from basic tab > completion, as opposed to the programmable completion which is provided > via the bash-completion package and is being discussed in this thread? > > I wouldn'

Re: bash-completion, tab and ambiguous globs

2016-02-17 Thread The Wanderer
On 2016-02-17 at 12:43, Lisi Reisz wrote: > On Wednesday 17 February 2016 16:54:15 John L. Ries wrote: > >>> Seriously, when does bash-completion actually help someone on >>> the command line? The only time I notice it is when a pattern is >>> buggy and doesn&

Re: bash-completion, tab and ambiguous globs

2016-02-17 Thread Lisi Reisz
On Wednesday 17 February 2016 16:54:15 John L. Ries wrote: > > Seriously, when does bash-completion actually help someone on the > > command line? The only time I notice it is when a pattern is buggy and > > doesn't let me complete a filename even when it's complet

Re: bash-completion, tab and ambiguous globs

2016-02-17 Thread John L. Ries
Seriously, when does bash-completion actually help someone on the command line? The only time I notice it is when a pattern is buggy and doesn't let me complete a filename even when it's completely valid. It apparently doesn't do anything for you or me (but I'm a Korn shel

Re: bash-completion, tab and ambiguous globs

2016-02-17 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Feb 17, 2016 at 10:14:06AM +0100, Nicolas George wrote: > Le nonidi 29 pluviôse, an CCXXIV, to...@tuxteam.de a écrit : > > It can be creepily smart, like knowing the branches in your project > > when you do git checkout bla or things like that.

Re: bash-completion, tab and ambiguous globs

2016-02-17 Thread Nicolas George
Le nonidi 29 pluviôse, an CCXXIV, to...@tuxteam.de a écrit : > It can be creepily smart, like knowing the branches in your project > when you do git checkout bla or things like that. Not bad. You mean what zsh already did in its default distribution fifteen years ago? And, of course, without break

Re: bash-completion, tab and ambiguous globs

2016-02-17 Thread tomas
"x*y" on the next line, then prints the command > > line anew with "x*y" replaced by longest common stem. > > > > With bash-completion installed, "x*y" is summarily replaced by > > its first match. > > Thank you! I just pondered this t

  1   2   >