X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71D9E3858C78
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1722439766;
	bh=lovQ8x9raXCtwNzWSlUc+66IU5D2zcPpkKnAL7XknRE=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=EO6oGQYhKFSmZ0y0UyfD/VkpH9ny7TzixOC1iuPhevSH3XNVy6bAN+BD4yYwgWKUA
	 yq3HtSiCSEu+5o96aIekOVglDc+/HJwqKb7Exsrt+9/YN/m4wElakqVFCVuBa0I5nf
	 dbOKp6LHLH4JcC11ziIrOzKMxJbyH+dEbhHapvtI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 053953858C35
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 053953858C35
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722439740; cv=none;
 b=I0wSHxbtZ829KgcMzgAzdF/0B1z0tDvU0Wu3nbZjjnT3XNp9hPkUcTFyyaHDrKR3KiSMyjamkz1vMvgVxyhpymY/IBVpSUKG64GKSV8Osvkh9jzYdmtJJMqhadzPbFf9HPWn42LvWPxJi01UVsZwfRASLJtvX+sHihjdJWTNpTw=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1722439740; c=relaxed/simple;
 bh=00ZwYdmx0uUFIqXV/47X3w+X0EMrHRz1mb7JXxhx1Go=;
 h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
 b=H42LOkgRKT1QLqDNi0RtPCS+YXkPI2spB4oxebxIs10rjjOyLSqhcYMU6bbJL1oTfXH3RXKqWAV4k2AheGa6sBghCE1FkQdujWaw5LPMRDLMhuTlRpALw7jW9adjjyUngt90skmYa76bt4AysahXrklksPuZfhAmE5UJEkbY74s=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1722439738; x=1723044538;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=NWUV4WP5Lj/nsY+xWQwPCKIQvVViU1Krwj3f5FoBHNU=;
 b=hhm3zx4lHR+YM7X223NwujqtVVZiFMc5VEknKzZ+OIXpQuXPcJ7N33YkqaMHIP1IfA
 2S22zJPK6kAOH3HiZ4HTA+MH0WR8CWbKCNc6+LFP8zdtqqvG4Y+66Y8x38B5HCnO4Hzl
 DdqYuCtdunDqHmtJ/aHF3xgFgEa8kmqsjo00bs51w1XLEFYPQLDD/7wT31FQ6PPx2fOc
 bJgqSMQ+1PFgBHGWGTBXOTaU68fpjYc6kRjbPZHRRi5TLVfmgkjD5dGhyUZ6nVbP8DGp
 2E3scuCS9grtn8nJGri2CdGT59H1V4dfpIeECycSJnHWRmgdsX73FtSWLfSwNteBO7Yj
 el2Q==
X-Gm-Message-State: AOJu0YwqiDiHEaAdf8sCpKOf2hGnYHXfeEghablxeKjQqzw882yHcOT4
 S+0kXW+xMfWAhlml5FEYaTkg8rQnc9MMLAFNguzqndd8X3ifuUN3G2Tydg+ufnMqdn49gooBs6c
 3UC59QyFYUiqtdIWlndEDdKU9/+nt5hveWJB1
X-Google-Smtp-Source: AGHT+IGXiG+t23ozXyoDaTuWmQenjLZn8EZdRlEthw8mx5bUMmhr8o9XTo5bZDvEbw3Svju78CXGt6HkDd0ZnP0GzDY=
X-Received: by 2002:a05:6902:2403:b0:e0b:a8e4:ac75 with SMTP id
 3f1490d57ef6-e0ba8e4af80mr5378945276.24.1722439738134; Wed, 31 Jul 2024
 08:28:58 -0700 (PDT)
MIME-Version: 1.0
References: <CAC2zJ1vRh2kks2fx_+Pz1WpJcXevp+Z6xQdzoEXMJwAUHyoFtA@mail.gmail.com>
In-Reply-To: <CAC2zJ1vRh2kks2fx_+Pz1WpJcXevp+Z6xQdzoEXMJwAUHyoFtA@mail.gmail.com>
Date: Wed, 31 Jul 2024 17:28:41 +0200
Message-ID: <CAC2zJ1vnuJKefPcZiKi7uueev3-8EBSRQhBBB+NWviVx5xRVDQ@mail.gmail.com>
Subject: Re: Re: Why cygwin's history output is prefixed by two spaces?
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Sophoklis Goumas via Cygwin <cygwin@cygwin.com>
Reply-To: Sophoklis Goumas <olspookishmagus@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 46VFTRuq445062

On Tue, 30 Jul 2024 at 12:35, Hans-Bernhard Bröker <hbbroeker@gmail.com> wrote:
>
> Your conclusion about there being some extra prefix is premature.
>

Indeed it is, please excuse me.

> That's just the number of the history entry, padded up to 5 characters
> with spaces for better alignment (as in
>
>      printf("% 5d", ...)

That might've been better if it were "%05d" and I also wonder what will
happen if someone surpasses 99999 lines in his history file.

I think I'll have a look at binutils source.

This is because I'm trying to parse history output and I foolishly set
FS (field separator) to be two consecutive spaces '\ \ '.

I think I'll pass this to sed first and maybe replace with an unlikely
character to be found thereafter so these lines will be parseable or if
it's confirmed to be a hardcoded fixed width output I'll just use column
numbers.

I also hope this won't get mess the threads as I thought I was
subscribed to this mailing list so I am replying by hand and I don't
know if the right headers will be included, so please excuse as well,
if the threads get messed up.

Thanks for your time/energy/answer, Hans-Bernard,
Sophoklis

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

