This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/RFC] Problem with '!' escaping with zsh/bash/ksh


Andrew,

On Mon, May 05, 2003 at 03:29:51PM -0400, Andrew Cagney wrote:
> Joel, testcase?
> 
> I was going to suggest gdb.base/args.exp but someone's already added that.
> Consider an addition to that existing test case pre-approved (and any 
> other evil combinations you come up with).

Coming back to this message, I am not sure I understand what you were
suggesting, do you remember? As far as I can tell, args.exp verifies
that all arguments are correctly passed to the inferior.

In our case, the '!' character was escaped in the executable name, but
not in the args (ie the args were left alone). So adding an extra test
for arguments containing '!' is fine, but not relevant to the issue at
hand.

At this point, I am considering the addition of a new test case, which
would basically:

  - compile args.c
  - copy args to bang!
  - gdb bang!
  - run

The problem is that this test should work fine on Unix machines
but I am guessing that this won't work so well on Windows boxes for
instance.

What do you think?

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]