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 im

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 r

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.

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 wan

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

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...

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 wha

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*|...

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 ena

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.fedorapr

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?

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-f

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

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'

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. _

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

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 sin

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

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É

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 y

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 irr

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

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

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 get

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 ot

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 pau

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-fo

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

2019-05-14 Thread 3603060030
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 ==

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 pro

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 > unn

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 yourse

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 som

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 me

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

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

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

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. > P

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 worka

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 ret

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 resul

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 pack

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 proble

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

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 depen

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: thun

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 -

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 t

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:

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

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

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 --

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 &q

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://adm