From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,eec8c4de47be074 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!feeder.erje.net!news2.arglkargh.de!news.albasani.net!not-for-mail From: Leslie Newsgroups: comp.lang.ada Subject: Re: gdb hijacks my argument list Date: Tue, 05 Jan 2010 13:25:50 -0600 Organization: albasani.net Message-ID: References: <4b43251a$0$6270$4f793bc4@news.tdc.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.albasani.net e9sOk2W5vVW9yR9WGbb8wL6f1poH9VHKfzNJdTdomP6Q4hwQNQMJwF3VbCBjOlghyApsgBY0gD6y6mWDK320GKe0vgH+l9lQSTVcf0kQ6BC5IR771yITvhFXo1N/35ns X-Complaints-To: abuse@albasani.net NNTP-Posting-Date: Tue, 5 Jan 2010 19:24:54 +0000 (UTC) X-User-ID: 7FSwXjcIlBZl2bOiiL93CnZSCn6UcqPC7+XCAZ9L1T3fv2503PpK9GpPM1AvRHQeimQ5zHwli0CCxHkn588oKQ== Cancel-Lock: sha1:jrDTIf2TLyKQY0b/m2G56+j3Yuw= User-Agent: KNode/0.10.9 X-NNTP-Posting-Host: ViARR2+BakI6b/6eGpqssgIQKLZZRXdxkNwrn3Hn4OU= Xref: g2news1.google.com comp.lang.ada:8618 Date: 2010-01-05T13:25:50-06:00 List-Id: John B. Matthews wrote: > In article , > Leslie wrote: > >> Niklas Holsti wrote: >> >> > gdb --args testtoken ' (name testtoken endchar \) < >> > > testtoken.adb | (trace) count lines|cons ' >> >> I get exactly the same result as before: > > This older version of gdb lacks the --args feature, but `set > args` and `show args` seem to work. Some of the tokens in your > arg string appear to be shell operators and commands. You may > have to evaluate the string in a shell and feed the result to > args. > The single quotes should deactivate the "specialness" of those operators. In any case, the entire string is being rejected, not just parts of it, and no substitutions are made by shell. However, I must say 'thank you very much,' because 'set args' does the trick. Thank you very much. Leslie