bash completion issue

2012-04-02 Thread João M . S . Silva
Hi, I don't know if this is a know issue. It probably is, because I'm not a bash-completion long-time user: $ tar Jxvf pkg/mpfr-3.1.0.tar.xz -C -srbash: compgen: -r: invalid option compgen: usage: compgen [-abcdefgjksuv] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C comma

Re: sed problem

2012-04-02 Thread Dennis Williamson
Wrong list. Your question is not about Bash and it's not about a bug in Bash.

Re: sed problem

2012-04-02 Thread dethrophes
Am 02.04.2012 15:25, schrieb Dennis Williamson: Wrong list. Your question is not about Bash and it's not about a bug in Bash. bash completion not bash. http://bash-completion.alioth.debian.org/

Re: sed problem

2012-04-02 Thread Dennis Williamson
You must have replied to the wrong message. The original was about sed, not completion.

Re: Strange behaviour on 'read' from a pipe

2012-04-02 Thread Lluís Batlle i Rossell
On Sun, Apr 01, 2012 at 06:27:46PM -0400, Chet Ramey wrote: > On 4/1/12 1:02 PM, Lluís Batlle i Rossell wrote: > > On Sun, Apr 01, 2012 at 11:06:22AM -0400, Chet Ramey wrote: > >> On 4/1/12 5:53 AM, Andreas Schwab wrote: > >> > It looks like a simple race condition. I suspect that the schedul

Re: sed problem

2012-04-02 Thread lina
On Sat, Aug 13, 2011 at 11:14 PM, Francky Leyn wrote: > Hello, > > I have the following problem: I must write a sed script that > converts parts of groff syntax to LaTeX syntax. > > eg: .BI -o gif_output_file -> \textbf{-o} \textit{gif\_output\_file} > > Lets neglect the underscores for the moment

Re: Strange behaviour on 'read' from a pipe

2012-04-02 Thread Lluís Batlle i Rossell
On Sun, Apr 01, 2012 at 06:27:46PM -0400, Chet Ramey wrote: > On 4/1/12 1:02 PM, Lluís Batlle i Rossell wrote: > > On Sun, Apr 01, 2012 at 11:06:22AM -0400, Chet Ramey wrote: > >> On 4/1/12 5:53 AM, Andreas Schwab wrote: > >> > It looks like a simple race condition. I suspect that the schedul

test - StringComparisons dont work

2012-04-02 Thread Fidu
BASH_VERSION='4.1.5(1)-release' Hi! x=sss; test "rrr" > $x redirects to file sss, instead of comparing. Any hint? Qu2: How to use expr?expr:expr conditional operator = *= /= %= += -= <<= >>= &= ^= |= assignment I didn't find any working construction? ($x=

Re: test - StringComparisons dont work

2012-04-02 Thread Greg Wooledge
On Mon, Apr 02, 2012 at 04:28:54PM +0200, Fidu wrote: > test "rrr" > $x redirects to file sss, instead of comparing. > Any hint? test rrr \> "$x" or test rrr ">" "$x" However, it should be noted that ">" as a string comparison operator in the test command is an extension, and not portable. As

Re: Strange behaviour on 'read' from a pipe

2012-04-02 Thread Lluís Batlle i Rossell
On Mon, Apr 02, 2012 at 04:39:19PM +0200, Lluís Batlle i Rossell wrote: > Trying to reproduce the race, I got rid of 'sleep', and expected this to never > hang. But it hangs where I try. Should I submit this to LKML maybe? > > I think it should not hang ever, but maybe I forecast something bad. >

Re: Strange behaviour on 'read' from a pipe

2012-04-02 Thread Greg Wooledge
On Mon, Apr 02, 2012 at 08:46:12PM +0200, Lluís Batlle i Rossell wrote: > #!/bin/sh You're running this in sh? But reporting it as a bug in bash? > PIPE=/tmp/pipe > > rm -f $PIPE > mkfifo $PIPE > set -x > > spawn() { > sleep 0.1 > echo DONE > $PIPE > } > > spawn & > > while true; do

Re: Strange behaviour on 'read' from a pipe

2012-04-02 Thread Lluís Batlle i Rossell
On Mon, Apr 02, 2012 at 03:29:33PM -0400, Greg Wooledge wrote: > On Mon, Apr 02, 2012 at 08:46:12PM +0200, Lluís Batlle i Rossell wrote: > > #!/bin/sh > > You're running this in sh? But reporting it as a bug in bash? In that case, sh points to bash. Sorry for the confusion I could have caused.