bug-bash@gnu.org

2009-10-19 Thread Sitaram Chamarty
On Tue, Oct 20, 2009 at 2:22 AM, Bob Proulx wrote: > Certainly yank-last-arg (M-.,M-_) is useful but don't forget about > yank-nth-arg (M-C-y) which yanks the first argument.  Most of the time > that you are doing something like 'edit filename.c &' then you can use > the still quite convenient M-C

bug-bash@gnu.org

2009-10-19 Thread Sitaram Chamarty
On Mon, Oct 19, 2009 at 6:08 AM, Chet Ramey wrote: > Sitaram Chamarty wrote: >> Hello, >> >> When the previous command was backgrounded (say "gvim >> filename.c &") and then you try some other command using >> Alt-., it expands to "&&qu

bug-bash@gnu.org

2009-10-17 Thread Sitaram Chamarty
Hello, When the previous command was backgrounded (say "gvim filename.c &") and then you try some other command using Alt-., it expands to "&" and not "filename.c". Is this considered a bug? Or correct behaviour that just happens to be not useful in this specific case? Thanks, Sitaram

Re: environment

2009-02-13 Thread Sitaram Chamarty
On 2009-02-13, Antonio Macchi wrote: > i think that > > $ ( echo $x ) > > is like > > $ bash -c 'echo $x' it is confusing I agree. 'man bash' and look for the section 'COMMAND EXECUTION ENVIRONMENT', which essentially says that a simple command gets a different environment (namely only the expor

Re: Strange change between bash-3.2 and bash-4.0

2009-02-11 Thread Sitaram Chamarty
On 2009-02-10, Chet Ramey wrote: > I'm not immediately sure where you got that, but the documentation makes > it clear: > > -e Exit immediately if a simple command (see SHELL GRAMMAR > above) exits with a non-zero status. The shell does not > exit

Re: getting FNM_PATHNAME behaviour from pattern matching

2009-02-09 Thread Sitaram Chamarty
On Mon, Feb 9, 2009 at 10:08 PM, Chet Ramey wrote: >> I'd like >> [[ abc/dd/def.html == abc/*.html ]]; echo $? >> >> to return 1, not 0. >> >> What am I missing/doing wrong? > > You're not doing anything wrong. There's no mechanism to force > FNM_PATHNAME-style matching using the [[ command.

Re: A Suggestion On Bash

2009-02-07 Thread Sitaram Chamarty
On 2009-02-08, donglongchao wrote: > Dear Sir or Madam:    I have a wonderful idea about > Bash(GNU bash version 3.2.39(1)-release > (i486-pc-linux-gnu)).   > > When I use tools like 'cat' or some other commands >like this,I find it hard to specify where the file you probably mea

getting FNM_PATHNAME behaviour from pattern matching

2009-02-07 Thread Sitaram Chamarty
Hello, I'm trying to match a patterm that requires the behaviour of FNM_PATHNAME (from fnmatch(3)). Unlike, say, FNM_PERIOD, which is emulated by unsetting 'dotglob', there does not seem to be an equivalent to emulate FNM_PATHNAME. I'd like [[ abc/dd/def.html == abc/*.html ]]; echo $? to re