Re: bash command

2021-06-04 Thread Todd Zullinger
Joe Zeff wrote:
> On 6/4/21 2:05 PM, Samuel Sieb wrote:
>> 
>> You removed your text when quoting my email.  In the email I replied to,
>> you were quoting the grep line.  No mention of rm at all.
> 
> We were, and are discussing the way rm acts in a shell script, so I expected
> that rm was the implied command.

I don't think that's entirely accurate.  :)

You quoted the portion which had `grep -Ev` in your reply:

On 6/4/21 12:21 PM, Joe Wulf via users wrote:
> The structure within the paren's looks like what would be used for a 'grep
> -Ev' to find everything BUT that mix of patterns.

Checking with the man page, I find that -v stands for verbose, telling you
what's happening.

So Joe Wulf is explicitly talking about the -v option to
grep and your reply suggests that -v means verbose --
without any mention that you are referring to rm.

Within your own context that might have made perfect sense,
but I hope you can see how it's certainly not as clear to
others reading the various sub-threads in this topic. :)

Anyway, all of that was a distraction from the issue at
hand, which was the difference between interactive use with
extglob and non-interactive use without it.

-- 
Todd


signature.asc
Description: PGP signature
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Jon LaBadie

On Fri, Jun 04, 2021 at 10:00:17PM +0200, Patrick Dupre wrote:


Patrick Dupre wrote:
> Sorry, I am a bit of list
> This command line works in a shell, but not in a bash
> I may miss some quotes !
> Thanks for your help.
>
> /usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)

The !(ZMAT*|...) syntax requires the bash extglob option.
This must be explicitly enabled in a non-interactive session
(like a script).  For example:

#!/bin/bash

shopt -s extglob
/usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)


Fantastic,
Thanks.

How can I leave this mode extglob ?



Well you might wonder why Todd used the "-s" option for shopt.
That is to "enable" or "set" the option to on.

Likely a manpage peek would show an option to turn off extglob.
Hint, it is probably "disable" or "unset".

--
Jon H. LaBadie  jo...@jgcomp.com
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Joe Zeff

On 6/4/21 2:05 PM, Samuel Sieb wrote:


You removed your text when quoting my email.  In the email I replied to, 
you were quoting the grep line.  No mention of rm at all.


We were, and are discussing the way rm acts in a shell script, so I 
expected that rm was the implied command.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Todd Zullinger
Samuel Sieb wrote:
> On 2021-06-04 1:00 p.m., Patrick Dupre wrote:
>> How can I leave this mode extglob ?
> 
> Do you need to?  It will only apply to the rest of the script anyway.

True.

Though depending on the size of the script and what else it
does, there are certainly times when you don't want this
enabled for the entire script.

There are a few ways to handle that.

You can simply unset it via `shopt -u extglob` after the rm.

Another common method to set an option and only have it
effect a small portion of the code is to use a subshell.
Like:

#!/bin/bash

# some code

(
shopt -s extglob
rm -v !(...)
)

# some other code

The subshell ensures that the shopt is only in effect for
the commands run within the opening and closing parentheses.

There are, as alway, pros and cons to each method.  With the
subshell method, a potential con is that the environment
might differ from the rest of the script.  If you depend on
variables which are set earlier in the script you just need
to be sure they're available to you in the subshell.
Similarly, if you set a variable in the subshell it won't be
available outside of the subshell.

-- 
Todd


signature.asc
Description: PGP signature
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread kevin martin
Could you not simply \ escape  the ! ?

On Fri, Jun 4, 2021, 3:05 PM Samuel Sieb  wrote:

> On 2021-06-04 12:36 p.m., Joe Zeff wrote:
> > On 6/4/21 1:11 PM, Samuel Sieb wrote:
> >>
> >> Which man page?  For grep, the "-v" is for inverting the result to
> >> only show non-matching lines.
> >
> > The man page for rm, of course.  Why would I suggest that you look at
> > any other command's man page to find out what an option for rm means?
>
> You removed your text when quoting my email.  In the email I replied to,
> you were quoting the grep line.  No mention of rm at all.
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
> https://pagure.io/fedora-infrastructure
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Samuel Sieb

On 2021-06-04 1:00 p.m., Patrick Dupre wrote:

How can I leave this mode extglob ?


Do you need to?  It will only apply to the rest of the script anyway.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Samuel Sieb

On 2021-06-04 12:36 p.m., Joe Zeff wrote:

On 6/4/21 1:11 PM, Samuel Sieb wrote:


Which man page?  For grep, the "-v" is for inverting the result to 
only show non-matching lines.


The man page for rm, of course.  Why would I suggest that you look at 
any other command's man page to find out what an option for rm means?


You removed your text when quoting my email.  In the email I replied to, 
you were quoting the grep line.  No mention of rm at all.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Patrick Dupre
Fantastic,
Thanks.

How can I leave this mode extglob ?

>
> Patrick Dupre wrote:
> > Sorry, I am a bit of list
> > This command line works in a shell, but not in a bash
> > I may miss some quotes !
> > Thanks for your help.
> >
> > /usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)
>
> The !(ZMAT*|...) syntax requires the bash extglob option.
> This must be explicitly enabled in a non-interactive session
> (like a script).  For example:
>
> #!/bin/bash
>
> shopt -s extglob
> /usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)
>
> --
> Todd
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam on the list, report it: 
> https://pagure.io/fedora-infrastructure
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Todd Zullinger
Hi,

Patrick Dupre wrote:
> Sorry, I am a bit of list
> This command line works in a shell, but not in a bash
> I may miss some quotes !
> Thanks for your help.
> 
> /usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)

The !(ZMAT*|...) syntax requires the bash extglob option.
This must be explicitly enabled in a non-interactive session
(like a script).  For example:

#!/bin/bash

shopt -s extglob
/usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)

-- 
Todd


signature.asc
Description: PGP signature
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Joe Zeff

On 6/4/21 1:17 PM, wwp wrote:

-V, --version

-v, --invert-match


Yes, that's true for grep, but we're discussing rm here.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Joe Zeff

On 6/4/21 1:11 PM, Samuel Sieb wrote:


Which man page?  For grep, the "-v" is for inverting the result to only 
show non-matching lines.


The man page for rm, of course.  Why would I suggest that you look at 
any other command's man page to find out what an option for rm means?

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Patrick Dupre
It works fine in a command line,

 

but in a script, I get

 

#!/bin/bash
/usr/bin/rm -v !(GENBAS|fja.*|run.sh|test.sh|ZMAT*|out*)
 

./test.sh: line 2: syntax error near unexpected token `('
./test.sh: line 2: `/usr/bin/rm -v !(GENBAS|fja.*|run.sh|test.sh|ZMAT*|out*)'
 

 


[jwesterd@jwesterd-f33 aaa]$ ls -1
a
b
c
d
e
f
[jwesterd@jwesterd-f33 aaa]$ /usr/bin/rm   -v   !(a*|b*|c*|d*|e*)
removed 'f'
[jwesterd@jwesterd-f33 aaa]$ ls -1
a
b
c
d
e

[jwesterd@jwesterd-f33 aaa]$ echo $0
bash

 

seems to work?

 

Are there asterisks or quotes in the files you are affecting?

 

Cheers

 






John Westerdale 

Sr Container Consultant  RHCSA-8.2

Red Hat NYC Office/WFH 

john.westerd...@redhat.com   

M: 201-376-9993     IM: jwesterd   He / Him / His



	
		
			
		
	


I respect your Life-Work balance. 

No need to respond immediately if you receive this outside your normal working hours.







 


On Fri, Jun 4, 2021 at 2:27 PM Patrick Dupre  wrote:

Hello,

Sorry, I am a bit of list
This command line works in a shell, but not in a bash
I may miss some quotes !
Thanks for your help.

/usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)

===
 Patrick DUPRÉ                                 | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988                    | | Room# D114A
===
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure

___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread wwp
Hello Joe,


On Fri, 4 Jun 2021 13:04:20 -0600 Joe Zeff  wrote:

> On 6/4/21 12:21 PM, Joe Wulf via users wrote:
> > The structure within the paren's looks like what would be used for a > 
> > 'grep -Ev' to find everything BUT that mix of patterns.  
> 
> Checking with the man page, I find that -v stands for verbose, telling you 
> what's happening.

   -V, --version

   -v, --invert-match


Regards,

-- 
wwp
https://useplaintext.email/


pgpe9qIHFDtR1.pgp
Description: OpenPGP digital signature
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Samuel Sieb

On 2021-06-04 12:04 p.m., Joe Zeff wrote:

On 6/4/21 12:21 PM, Joe Wulf via users wrote:
The structure within the paren's looks like what would be used for a 
'grep -Ev' to find everything BUT that mix of patterns.


Checking with the man page, I find that -v stands for verbose, telling 
you what's happening.


Which man page?  For grep, the "-v" is for inverting the result to only 
show non-matching lines.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Joe Zeff

On 6/4/21 12:21 PM, Joe Wulf via users wrote:
The structure within the paren's looks like what would be used for a 
'grep -Ev' to find everything BUT that mix of patterns.


Checking with the man page, I find that -v stands for verbose, telling 
you what's happening.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread John Westerdale
[jwesterd@jwesterd-f33 aaa]$ ls -1
a
b
c
d
e
f
[jwesterd@jwesterd-f33 aaa]$ /usr/bin/rm   -v   !(a*|b*|c*|d*|e*)
removed 'f'
[jwesterd@jwesterd-f33 aaa]$ ls -1
a
b
c
d
e
[jwesterd@jwesterd-f33 aaa]$ echo $0
bash

seems to work?

Are there asterisks or quotes in the files you are affecting?

Cheers

John Westerdale

Sr Container Consultant * RHCSA-8.2*

Red Hat  NYC Office/WFH

john.westerd...@redhat.com

M: 201-376-9993 IM: jwesterd   He / Him / His


I respect your Life-Work balance.

No need to respond immediately if you receive this outside your normal
working hours.


On Fri, Jun 4, 2021 at 2:27 PM Patrick Dupre  wrote:

> Hello,
>
> Sorry, I am a bit of list
> This command line works in a shell, but not in a bash
> I may miss some quotes !
> Thanks for your help.
>
> /usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)
>
> ===
>  Patrick DUPRÉ | | email: pdu...@gmx.com
>  Laboratoire interdisciplinaire Carnot de Bourgogne
>  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
>  Tel: +33 (0)380395988| | Room# D114A
> ===
> ___
> users mailing list -- users@lists.fedoraproject.org
> To unsubscribe send an email to users-le...@lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
> https://pagure.io/fedora-infrastructure
>
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Roger Heflin
I would have coded it this way:
/usr/bin/rm -v `ls -1|egrep -ve '(^ZMAT|^out|^Out|^GENBAS|^Note)'`

And bash is a shell, but you mean a script.  Likely in interactive bash the
* are getting expanded so you might have to use noglob to suppress it or
something similar.

Or you might have to use a single quote to suppress the expansion so that
rm gets the *, otherwise the shell expands the * and rm gets a list of
files.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: bash command

2021-06-04 Thread Joe Wulf via users
 Patrick,
The structure within the paren's looks like what would be used for a 'grep -Ev' 
to find everything BUT that mix of patterns.
Can you explain what it is you are attempting to do, and provide some context, 
please.
Thank you.-Joe


On Friday, June 4, 2021, 2:14:53 PM EDT, Patrick Dupre  
wrote:  
 
 Hello,

Sorry, I am a bit of list
This command line works in a shell, but not in a bash
I may miss some quotes !
Thanks for your help.

/usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)

===
 Patrick DUPRÉ                                | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988                    | | Room# D114A
===
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure
  ___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


bash command

2021-06-04 Thread Patrick Dupre
Hello,

Sorry, I am a bit of list
This command line works in a shell, but not in a bash
I may miss some quotes !
Thanks for your help.

/usr/bin/rm -v !(ZMAT*|out*|Out*|GENBAS|Note*)

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988| | Room# D114A
===
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure


Re: why the long pause after bash "command not found"?

2019-05-17 Thread Samuel Sieb

On 5/15/19 10:02 AM, francis.montag...@inria.fr wrote:

Me too, and particularly since I discovered the M-/ (or Alt-/,
complete-filename) key to force a simple filename completion when the
full (too fancy) completion with TAB is not what you want.


Thank you very much for this tip!  I used this yesterday.  That has been 
my only annoyance with bash-completion.

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: why the long pause after bash "command not found"?

2019-05-17 Thread Ian Chapman

On 15/05/2019 06:33, Tom Horsley wrote:


Try removing PackageKit-command-not-found if you don't want that
"feature".


On my list to remove even before I first boot a newly
installed fedora (from a chroot into the fedora partition).
bash-completion and environment-modules are two other
highly irritating ones I get rid of.


+1 to that. The bash-completion is in theory useful but in many cases it 
doesn't fallback to the default properly which is just annoying.


--
Regards,
Ian Chapman
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: why the long pause after bash "command not found"?

2019-05-15 Thread Francis . Montagnac

Hi

On Wed, 15 May 2019 11:45:51 +0100 Patrick O'Callaghan wrote:
> On Tue, 2019-05-14 at 18:33 -0400, Tom Horsley wrote:
>> On my list to remove even before I first boot a newly
>> installed fedora (from a chroot into the fedora partition).
>> bash-completion and environment-modules are two other
>> highly irritating ones I get rid of.

> I find bash-completion useful (within limits).

Me too, and particularly since I discovered the M-/ (or Alt-/,
complete-filename) key to force a simple filename completion when the
full (too fancy) completion with TAB is not what you want.

The bash-completion is really useful with a bunch of commands
nowadays.

-- 
francis
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: why the long pause after bash "command not found"?

2019-05-15 Thread Patrick O'Callaghan
On Tue, 2019-05-14 at 18:33 -0400, Tom Horsley wrote:
> On Tue, 14 May 2019 18:11:45 -0400
> DJ Delorie wrote:
> 
> > Try removing PackageKit-command-not-found if you don't want that
> > "feature".
> 
> On my list to remove even before I first boot a newly
> installed fedora (from a chroot into the fedora partition).
> bash-completion and environment-modules are two other
> highly irritating ones I get rid of.

I find bash-completion useful (within limits).

poc
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: why the long pause after bash "command not found"?

2019-05-15 Thread Robert P. J. Day
On Tue, 14 May 2019, Samuel Sieb wrote:

> On 5/14/19 3:00 PM, Robert P. J. Day wrote:
> >i'm finally annoyed enough about this to just ask ... on a regular
> > basis, i mistype a command and (predictably) get:
> >
> >bash: xxx: command not found...
> >
> > but, quite often, rather than getting a bash prompt back immediately,
> > there is a lng pause, as i wait, and wait, and wait for a new
> > prompt, finally running out of patience and breaking with ^C to get a
> > new prompt.
> >
> >what in the name of mutt is bash doing all that time? if there's no
> > such command, why the long pause in giving me a new prompt?
>
> If you have "PackageKit-command-not-found" installed, then it's trying to find
> you a package to install to give you that command.  Try running a command that
> could exist, but you don't have installed.  For example, "cowsay". :-)
> (Unless you do have that installed.)

  ah, got it, thanks.

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: why the long pause after bash "command not found"?

2019-05-14 Thread Tom Horsley
On Tue, 14 May 2019 18:11:45 -0400
DJ Delorie wrote:

> Try removing PackageKit-command-not-found if you don't want that
> "feature".

On my list to remove even before I first boot a newly
installed fedora (from a chroot into the fedora partition).
bash-completion and environment-modules are two other
highly irritating ones I get rid of.
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: why the long pause after bash "command not found"?

2019-05-14 Thread Samuel Sieb

On 5/14/19 3:00 PM, Robert P. J. Day wrote:

   i'm finally annoyed enough about this to just ask ... on a regular
basis, i mistype a command and (predictably) get:

   bash: xxx: command not found...

but, quite often, rather than getting a bash prompt back immediately,
there is a lng pause, as i wait, and wait, and wait for a new
prompt, finally running out of patience and breaking with ^C to get a
new prompt.

   what in the name of mutt is bash doing all that time? if there's no
such command, why the long pause in giving me a new prompt?


If you have "PackageKit-command-not-found" installed, then it's trying 
to find you a package to install to give you that command.  Try running 
a command that could exist, but you don't have installed.  For example, 
"cowsay". :-)  (Unless you do have that installed.)

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: why the long pause after bash "command not found"?

2019-05-14 Thread DJ Delorie
"Robert P. J. Day"  writes:
>   what in the name of mutt is bash doing all that time? if there's no
> such command, why the long pause in giving me a new prompt?

It's probably trying to give you a clue on how to install the right
package to get that command.

Try removing PackageKit-command-not-found if you don't want that
"feature".
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


RE: why the long pause after bash "command not found"?

2019-05-14 Thread 3603060030
This is PackageKit looking for RPM binary packages that might have the command 
you need.

(Please CC this message yourself if it doesn't reach the list.)

  -Original Message-
  From: 
  Sent: Tue, 14 May 2019 18:00:29 -0400 (EDT)
  To: 3603060...@txt.att.net
 Subject: why the long pause after bash "command not found"?

>
>  i'm finally annoyed enough about this to just ask ... on a regular
>basis, i mistype a command and (predictably) get:
>
>  bash: xxx: command not found...
>
>but, quite often

==
This mobile text message is brought to you by AT&T
___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


why the long pause after bash "command not found"?

2019-05-14 Thread Robert P. J. Day

  i'm finally annoyed enough about this to just ask ... on a regular
basis, i mistype a command and (predictably) get:

  bash: xxx: command not found...

but, quite often, rather than getting a bash prompt back immediately,
there is a lng pause, as i wait, and wait, and wait for a new
prompt, finally running out of patience and breaking with ^C to get a
new prompt.

  what in the name of mutt is bash doing all that time? if there's no
such command, why the long pause in giving me a new prompt?

rday

-- 


Robert P. J. Day Ottawa, Ontario, CANADA
 http://crashcourse.ca

Twitter:   http://twitter.com/rpjday
LinkedIn:   http://ca.linkedin.com/in/rpjday

___
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org


Re: bash command completion

2012-06-24 Thread Richard Vickery
On Sun, Jun 24, 2012 at 1:27 PM, Ed Greshko  wrote:

> On 06/25/2012 12:55 AM, Richard Vickery wrote:
> > Bottom and top posting rules between posting here and the Developers
> list may get
> > confusing
>
> I'm sure you can handle it  Does the Developer's list have rules about
> trimming
> unnecessary cruft?  :-) :-)
>
> --
> Never be afraid to laugh at yourself, after all, you could be missing out
> on the joke
> of the century. -- Dame Edna Everage
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>

unsure
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command completion

2012-06-24 Thread Ed Greshko
On 06/25/2012 12:55 AM, Richard Vickery wrote:
> Bottom and top posting rules between posting here and the Developers list may 
> get
> confusing

I'm sure you can handle it  Does the Developer's list have rules about 
trimming
unnecessary cruft?  :-) :-)

-- 
Never be afraid to laugh at yourself, after all, you could be missing out on 
the joke
of the century. -- Dame Edna Everage
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command completion

2012-06-24 Thread Richard Vickery
On Fri, Jun 22, 2012 at 10:11 PM, Ed Greshko  wrote:

> On 06/23/2012 12:19 PM, Richard Vickery wrote:
> > This is awesome Ed:  Did it work like this before as well, and I was
> just ignorant
> > of it? Now all the commands are readable, which for me is better as it
> seemed as if
> > they were somewhat jumbled, as the letter you are looking at seemed to
> meshed into
> > the next.
>
> Yes.  Even in F16 and F15 a "letter + tab/tab" gets you a list of commands
> stating
> with that letter...
>
> F16
>
> [egreshko@meimei ~]$ l (tab/tab)
> Display all 183 possibilities? (y or n)
>
> And, of course, you could do...2 letters and depending on the number of
> command you
> may get the whole list...
>
> [egreshko@meimei ~]$ ld (tab/tab)
> ld   ldapcompare  ldapmodify   ldapsearch   ldattach ldd
> ldapadd  ldapdelete   ldapmodrdn   ldapurl  ld.bfd   lddlibc4
> ldapbldapexop ldappasswd   ldapwhoami   ldconfig ld.gold
>
>
> But "tab/tab" on F16 gets you
>
> [egreshko@meimei ~]$ (tab/tab)
> Display all 4262 possibilities? (y or n)
>
> More or lessdepending on what you've got installed.
>
> With F17 you no longer have the sole "tab/tab" optionwhich isn't a bad
> thing IMO.
>
>
> (FYI, "top posting" is frowned upon here  :-) )
>
>
> --
> Never be afraid to laugh at yourself, after all, you could be missing out
> on the joke
> of the century. -- Dame Edna Everage
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>

Bottom and top posting rules between posting here and the Developers list
may get confusing
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command completion

2012-06-22 Thread Ed Greshko
On 06/23/2012 12:19 PM, Richard Vickery wrote:
> This is awesome Ed:  Did it work like this before as well, and I was just 
> ignorant
> of it? Now all the commands are readable, which for me is better as it seemed 
> as if
> they were somewhat jumbled, as the letter you are looking at seemed to meshed 
> into
> the next.

Yes.  Even in F16 and F15 a "letter + tab/tab" gets you a list of commands 
stating
with that letter...

F16

[egreshko@meimei ~]$ l (tab/tab)
Display all 183 possibilities? (y or n)

And, of course, you could do...2 letters and depending on the number of command 
you
may get the whole list...

[egreshko@meimei ~]$ ld (tab/tab)
ld   ldapcompare  ldapmodify   ldapsearch   ldattach ldd
ldapadd  ldapdelete   ldapmodrdn   ldapurl  ld.bfd   lddlibc4
ldapbldapexop ldappasswd   ldapwhoami   ldconfig ld.gold


But "tab/tab" on F16 gets you

[egreshko@meimei ~]$ (tab/tab)
Display all 4262 possibilities? (y or n)

More or lessdepending on what you've got installed.

With F17 you no longer have the sole "tab/tab" optionwhich isn't a bad 
thing IMO.


(FYI, "top posting" is frowned upon here  :-) )


-- 
Never be afraid to laugh at yourself, after all, you could be missing out on 
the joke
of the century. -- Dame Edna Everage
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command completion

2012-06-22 Thread Richard Vickery
This is awesome Ed: [?] Did it work like this before as well, and I was just
ignorant of it? Now all the commands are readable, which for me is better
as it seemed as if they were somewhat jumbled, as the letter you are
looking at seemed to meshed into the next.

Sorry that I didn't get to try the others; perhaps I will at some point.
It's just that Ed's suggestion is so easy

On Thu, Jun 21, 2012 at 5:53 PM, Ed Greshko  wrote:

> On 06/22/2012 08:25 AM, Richard Vickery wrote:
> > Before F-17 I had become accustomed through experience to using ,
> hit twice,
> > to get a full list of the commands; perhaps you set it by default - at
> least in the
> > release on the website. This time I upgraded through the link in the
> mail. Perhaps
> > I asked this before and forgot the method: what is the proper command to
> get a
> > list of all of the commands, and perhaps, how do I set it up through
> this 
> > shortcut?
>
> The behavior was changed  I'm guessing this is due to offering to show
> 4000+
> possibilities a bit useless.  However, you can type a single letter + tab
> and get the
> commands listed that start with that letter.
>
> I'm taking a SWAG, but you'd probably have to edit
> /usr/share/bash-completion/bash_completion to get the old behavior back.
>
>
> --
> Never be afraid to laugh at yourself, after all, you could be missing out
> on the joke
> of the century. -- Dame Edna Everage
> --
> users mailing list
> users@lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>
<<328.png>>-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command completion

2012-06-22 Thread suvayu ali
On Fri, Jun 22, 2012 at 2:53 AM, Ed Greshko  wrote:
> I'm taking a SWAG, but you'd probably have to edit
> /usr/share/bash-completion/bash_completion to get the old behavior back.

The OP can just wrap or redefine _minimal. Followed by a

$ complete -F  # or _minimal if redefined

should do the job.

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command completion

2012-06-22 Thread Aaron Konstam

On Thu, 2012-06-21 at 17:25 -0700, Richard Vickery wrote: 
Hi gang:
> 
> 
> Before F-17 I had become accustomed through experience to using ,
hit twice, to get a full list of the commands; perhaps you set it by
default - at least in the release on the website. This time I upgraded
through the link in the mail. Perhaps I asked this before and forgot the
method: what is the proper command to get a
> list of all of the commands, and perhaps, how do I set it up through
this  shortcut?
> 
> 
> Thanks,
> Richard
> 
The way it works on both my F16 and F17 machine is:
1. tab -completion to first matching file
2 2 tabs - same as above
3. 3 tabs - all files that would be seen by completion
-- 
--
===
I wish a robot would get elected president. That way, when he came to
town, we could all take a shot at him and not feel too bad. -- Jack
Handley
===
Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net

-- 
--
===
It is always the best policy to tell the truth, unless, of course, you
are an exceptionally good liar. -- Jerome K. Jerome
===
Aaron Konstam telephone: (210) 656-0355 e-mail: akons...@sbcglobal.net

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command completion

2012-06-21 Thread Ed Greshko
On 06/22/2012 08:25 AM, Richard Vickery wrote:
> Before F-17 I had become accustomed through experience to using , hit 
> twice,
> to get a full list of the commands; perhaps you set it by default - at least 
> in the
> release on the website. This time I upgraded through the link in the mail. 
> Perhaps
> I asked this before and forgot the method: what is the proper command to get a
> list of all of the commands, and perhaps, how do I set it up through this 
> 
> shortcut?

The behavior was changed  I'm guessing this is due to offering to show 4000+
possibilities a bit useless.  However, you can type a single letter + tab and 
get the
commands listed that start with that letter.

I'm taking a SWAG, but you'd probably have to edit
/usr/share/bash-completion/bash_completion to get the old behavior back.


-- 
Never be afraid to laugh at yourself, after all, you could be missing out on 
the joke
of the century. -- Dame Edna Everage
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Re: bash command not found

2011-06-06 Thread Richard Hughes
On 6 June 2011 03:57, Rahul Sundaram  wrote:
> It really isn't.  It is just a workaround that produces inconsistent
> behaviour for reasons that are not clear or documented.  The right fix
> would be to find out why yum doesn't work off the cache when told to and
> solve that problem but this workaround is better than previous behaviour

yum isn't really designed to work in this way. Nobody is that
interested in fixing it.

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-05 Thread Rahul Sundaram
On 06/02/2011 05:19 PM, Chris Tyler wrote:
> On Thu, 2011-06-02 at 12:39 +0100, Richard Hughes wrote:
>>  
>> This is by design. I lost count of the number of bugs opened against
>> PackageKit-command-not-found where yum would happily go and download
>> the latest metadata and take 3 minutes to return to the bash prompt,
>> even when yum is told to work from a cache.
> Just to be clear: I think that's the right way of operating :-)

It really isn't.  It is just a workaround that produces inconsistent
behaviour for reasons that are not clear or documented.  The right fix
would be to find out why yum doesn't work off the cache when told to and
solve that problem but this workaround is better than previous behaviour

Rahul

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Patrick O'Callaghan
On Thu, 2011-06-02 at 16:09 +0200, Eric Tanguy wrote:
> Le 02/06/2011 15:30, Eric Tanguy a écrit :
> > Le 02/06/2011 13:12, Michael Schwendt a écrit :
> >> On Thu, 02 Jun 2011 11:43:19 +0200, ET wrote:
> >>
> >>> I tried uninstall and reinstall PackageKit-command-not-found with the
> >>> same result.
> >>> Maybe a x86_64 problem ?
> >> No. Don't just reinstall a package if it isn't broken.
> >> Try to examine the problem a bit. Everything's there for
> >> you to look at.
> >>
> >> $ rpm -ql PackageKit-command-not-found
> >> /etc/PackageKit/CommandNotFound.conf
> >> /etc/profile.d/PackageKit.sh
> >> /usr/libexec/pk-command-not-found
> >>
> >> Look at /etc/profile.d/PackageKit.sh and try to find out
> >> whether it is run and where it terminates.
> > I did nothing special and now it works ...
> > I don't understand!
> > Thanks
> > Eric
> >
> In fact it's not stable.
> Sometimes
> $ ftp
> bash: ftp: commande inconnue...
> Voulez-vous installer le paquet « ftp » qui fournit la commande 
> « ftp » ? [N/y]
> 
> And sometimes
> $ ftp
> bash: ftp: commande inconnue...
> 
> How to find where the problem could come from ?

This could well be simply a matter of adjusting the timeout, i.e. the
behaviour depends on the current speed of your network.

(Personally I think this level of "helpfulness" is totally out of place
in a Shell, so I fixed it by uninstalling PackageKit-command-not-found).

poc

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Eric Tanguy
Le 02/06/2011 15:30, Eric Tanguy a écrit :
> Le 02/06/2011 13:12, Michael Schwendt a écrit :
>> On Thu, 02 Jun 2011 11:43:19 +0200, ET wrote:
>>
>>> I tried uninstall and reinstall PackageKit-command-not-found with the
>>> same result.
>>> Maybe a x86_64 problem ?
>> No. Don't just reinstall a package if it isn't broken.
>> Try to examine the problem a bit. Everything's there for
>> you to look at.
>>
>> $ rpm -ql PackageKit-command-not-found
>> /etc/PackageKit/CommandNotFound.conf
>> /etc/profile.d/PackageKit.sh
>> /usr/libexec/pk-command-not-found
>>
>> Look at /etc/profile.d/PackageKit.sh and try to find out
>> whether it is run and where it terminates.
> I did nothing special and now it works ...
> I don't understand!
> Thanks
> Eric
>
In fact it's not stable.
Sometimes
$ ftp
bash: ftp: commande inconnue...
Voulez-vous installer le paquet « ftp » qui fournit la commande 
« ftp » ? [N/y]

And sometimes
$ ftp
bash: ftp: commande inconnue...

How to find where the problem could come from ?
Eric

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Eric Tanguy
Le 02/06/2011 13:12, Michael Schwendt a écrit :
> On Thu, 02 Jun 2011 11:43:19 +0200, ET wrote:
>
>> I tried uninstall and reinstall PackageKit-command-not-found with the
>> same result.
>> Maybe a x86_64 problem ?
> No. Don't just reinstall a package if it isn't broken.
> Try to examine the problem a bit. Everything's there for
> you to look at.
>
> $ rpm -ql PackageKit-command-not-found
> /etc/PackageKit/CommandNotFound.conf
> /etc/profile.d/PackageKit.sh
> /usr/libexec/pk-command-not-found
>
> Look at /etc/profile.d/PackageKit.sh and try to find out
> whether it is run and where it terminates.
I did nothing special and now it works ...
I don't understand!
Thanks
Eric

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Chris Tyler
On Thu, 2011-06-02 at 12:39 +0100, Richard Hughes wrote:
> On 2 June 2011 12:35, Chris Tyler  wrote:
> > - If pk-c-n-f times out on fetching file list metadata, it seems to
> > silently stop trying to suggest packages. I've seen this on slow
> > connections and disconnected machines. IIRC, fetching recent metadata
> > (e.g., by using yum to find a file-level dependency) restores pk-c-n-f's
> > operation.
> 
> This is by design. I lost count of the number of bugs opened against
> PackageKit-command-not-found where yum would happily go and download
> the latest metadata and take 3 minutes to return to the bash prompt,
> even when yum is told to work from a cache.

Just to be clear: I think that's the right way of operating :-)

-Chris

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Richard Hughes
On 2 June 2011 12:35, Chris Tyler  wrote:
> - If pk-c-n-f times out on fetching file list metadata, it seems to
> silently stop trying to suggest packages. I've seen this on slow
> connections and disconnected machines. IIRC, fetching recent metadata
> (e.g., by using yum to find a file-level dependency) restores pk-c-n-f's
> operation.

This is by design. I lost count of the number of bugs opened against
PackageKit-command-not-found where yum would happily go and download
the latest metadata and take 3 minutes to return to the bash prompt,
even when yum is told to work from a cache.

If you want the old behaviour back, just up the timeout in
/etc/PackageKit/CommandNotFound.conf

# Controls how long we should allow the user to wait when searching for
# additional packages.
# This can be set to very small numbers to avoid distracting the user, although
# some entries may not be found if the caches need refreshing or metadata
# downloading.
#
# Value is the number of milliseconds to allow.
#
# default=2000
MaxSearchTime=2000

Richard
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Chris Tyler
On Thu, 2011-06-02 at 11:43 +0200, Eric Tanguy wrote:
> I tried uninstall and reinstall PackageKit-command-not-found with the 
> same result.
> Maybe a x86_64 problem ?
> Eric
> 

Two observations:

- If Packagekit-command-not-found is active, the error message seems to
change from:

bash: thunderbird: command not found

to:

bash: thunderbird: command not found...

(Note the "...")

- If pk-c-n-f times out on fetching file list metadata, it seems to
silently stop trying to suggest packages. I've seen this on slow
connections and disconnected machines. IIRC, fetching recent metadata
(e.g., by using yum to find a file-level dependency) restores pk-c-n-f's
operation.

--
Chris

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Michael Schwendt
On Thu, 02 Jun 2011 11:43:19 +0200, ET wrote:

> I tried uninstall and reinstall PackageKit-command-not-found with the 
> same result.
> Maybe a x86_64 problem ?

No. Don't just reinstall a package if it isn't broken.
Try to examine the problem a bit. Everything's there for
you to look at.

$ rpm -ql PackageKit-command-not-found
/etc/PackageKit/CommandNotFound.conf
/etc/profile.d/PackageKit.sh
/usr/libexec/pk-command-not-found

Look at /etc/profile.d/PackageKit.sh and try to find out
whether it is run and where it terminates.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Eric Tanguy
Le 02/06/2011 11:36, Joachim Backes a écrit :
> On 06/02/2011 11:30 AM, Eric Tanguy wrote:
>> Le 02/06/2011 11:25, Joachim Backes a écrit :
>>> On 06/02/2011 11:19 AM, Eric Tanguy wrote:
 In fedora14 in cli if i try an unknown command the system tried to 
 find
 the package containing this command.
 This seems to not work in f15.
 # telnet
 bash: telnet: command not found...

 and that's all. The system does not propose to install telnet client
 package.
 Is this normal ?

 Thanks
 Eric

>>>
>>> Install
>>>
>>> PackageKit-command-not-found
>>>
>> PackageKit-command-not-found-0.6.14-2.fc15.x86_64 already installed but
>> does not seem to work.
>>
>
> Hi Eric,
>
> after uninstalling "telnet" and typing "telnet somehost" inside of a 
> gnome-terminal, I get:
>
> telnet somehost
> bash: telnet: command not found...
> Install package 'telnet' to provide command 'telnet'? [N/y
>
> Answering with "yes" will install the telnet package, and the telnet 
> cmd is started.
>
I tried uninstall and reinstall PackageKit-command-not-found with the 
same result.
Maybe a x86_64 problem ?
Eric

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Joachim Backes

On 06/02/2011 11:30 AM, Eric Tanguy wrote:

Le 02/06/2011 11:25, Joachim Backes a écrit :

On 06/02/2011 11:19 AM, Eric Tanguy wrote:

In fedora14 in cli if i try an unknown command the system tried to find
the package containing this command.
This seems to not work in f15.
# telnet
bash: telnet: command not found...

and that's all. The system does not propose to install telnet client
package.
Is this normal ?

Thanks
Eric



Install

PackageKit-command-not-found


PackageKit-command-not-found-0.6.14-2.fc15.x86_64 already installed but
does not seem to work.



Hi Eric,

after uninstalling "telnet" and typing "telnet somehost" inside of a 
gnome-terminal, I get:


telnet somehost
bash: telnet: command not found...
Install package 'telnet' to provide command 'telnet'? [N/y

Answering with "yes" will install the telnet package, and the telnet cmd 
is started.


--
Joachim Backes 

http://www.rhrk.uni-kl.de/~backes



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Eric Tanguy
Le 02/06/2011 11:25, Joachim Backes a écrit :
> On 06/02/2011 11:19 AM, Eric Tanguy wrote:
>> In fedora14 in cli if i try an unknown command the system tried to find
>> the package containing this command.
>> This seems to not work in f15.
>> # telnet
>> bash: telnet: command not found...
>>
>> and that's all. The system does not propose to install telnet client
>> package.
>> Is this normal ?
>>
>> Thanks
>> Eric
>>
>
> Install
>
> PackageKit-command-not-found
>
PackageKit-command-not-found-0.6.14-2.fc15.x86_64 already installed but 
does not seem to work.

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: bash command not found

2011-06-02 Thread Joachim Backes

On 06/02/2011 11:19 AM, Eric Tanguy wrote:

In fedora14 in cli if i try an unknown command the system tried to find
the package containing this command.
This seems to not work in f15.
# telnet
bash: telnet: command not found...

and that's all. The system does not propose to install telnet client
package.
Is this normal ?

Thanks
Eric



Install

PackageKit-command-not-found

--
Joachim Backes 

http://www.rhrk.uni-kl.de/~backes



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


bash command not found

2011-06-02 Thread Eric Tanguy
In fedora14 in cli if i try an unknown command the system tried to find 
the package containing this command.
This seems to not work in f15.
# telnet
bash: telnet: command not found...

and that's all. The system does not propose to install telnet client 
package.
Is this normal ?

Thanks
Eric

-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: How to change bash command line to "[r...@example.com ~]#"

2010-11-20 Thread Ed Greshko
On 11/20/2010 08:15 PM, David Nelson wrote:
> Hi, :-)
>
> My bash command line on my FC12 VPS displays "[r...@example ~]#"
>
> How can I change it to "[r...@example.com ~]#"?
>
> TIA for any answers. :-)
>
>
http://tinyurl.com/2g7amrq

You did say "any"

-- 
"It was nice of you to let me reattach your arm." --Zoidber 葛斯克 愛德
華 / 台北市八德路四段


signature.asc
Description: OpenPGP digital signature
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


How to change bash command line to "[r...@example.com ~]#"

2010-11-20 Thread David Nelson
Hi, :-)

My bash command line on my FC12 VPS displays "[r...@example ~]#"

How can I change it to "[r...@example.com ~]#"?

TIA for any answers. :-)

David Nelson
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines