From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12365 invoked by alias); 21 Feb 2008 16:59:38 -0000 Received: (qmail 12357 invoked by uid 22791); 21 Feb 2008 16:59:37 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Feb 2008 16:59:14 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 1A36E98259; Thu, 21 Feb 2008 16:59:13 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id F28F2981FC; Thu, 21 Feb 2008 16:59:12 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JSElL-0004gS-QH; Thu, 21 Feb 2008 11:59:11 -0500 Date: Thu, 21 Feb 2008 18:07:00 -0000 From: Daniel Jacobowitz To: =?iso-8859-1?Q?Fr=E9d=E9ric?= Bastien Cc: gdb@sourceware.org Subject: Re: multiple command on one line Message-ID: <20080221165911.GA17988@caradoc.them.org> Mail-Followup-To: =?iso-8859-1?Q?Fr=E9d=E9ric?= Bastien , gdb@sourceware.org References: <2d1d7fe70802210852u212a0fbbv186ed534f3aaf96a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2d1d7fe70802210852u212a0fbbv186ed534f3aaf96a@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00168.txt.bz2 On Thu, Feb 21, 2008 at 11:52:53AM -0500, Frédéric Bastien wrote: > I > > I need to print many variable at each itaration of a loop. I would > line to be able to print all of them in a single line like in bash. Is > this possible? If yes how? I have look in many place but I never > found. > > example > > p var1 > p var2 > p var3 > > I would like to be able to do something linke > > p var1; p var2; p var3 It sounds like what you want is either the "printf" command, to print many variables on one output line, or "display", to print them automatically. -- Daniel Jacobowitz CodeSourcery