X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 077693858430
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1722589536;
	bh=GbSEoxiBJu585JEDQfFfxAGWixGE1gfnhCpR2AQ0E74=;
	h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=uMceQhlJbkWIAHvcs2HA3fb/L60vszjcQgkOXC5YzbqtDw1ygqJrxVXOwM2qGsBjV
	 1TWrfeXeRCHjsDtBjZH/AExceXaUlRpaMcjzt0fdFiO1WxQuRtYU6vMshP+SxlcrNj
	 86VCS7Yuh6UpDvCEmADeSVTm7Kw+VtdsGdOrNxgU=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D47AD3858428
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D47AD3858428
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722589509; cv=none;
 b=pMsqUGAE9bQJzCF1ntlRdJP6lmS1OVcH42JQcv9YduG6fy8u8HZH15w88zrF0eVYXK0zFTV0ZVJ7C23OQ1b5RwTStZuv7GBPQCupx5IaBCo6zsKomkvQTROBP81qsF5BqMsAZ8Z5PUTtsCtrx/VH1ZkhpwS7bohOlovIKu+ih2U=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1722589509; c=relaxed/simple;
 bh=nvQwJgALfjIbqe9IIXIAeZg6zlxqqKCoSvFraT9/XUA=;
 h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
 b=m/VWFqPGr+KDbaD5uK8f8ggZOnlm3q0jSpzjnpg+zT3YiTF7RqLZoguJxyhysQ1U2bcV2/vFbvJksVz5iVzT7OG1qyq4t7E6w5QsZS2gh/2eVECNY9qfeAma/2gFn6Ss8phbk1UkIMyzjofkesmmfLar3o7sHiKJ2Hf002RPqII=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Yandex-Fwd: 1
Date: Fri, 2 Aug 2024 11:54:55 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <792483017.20240802115455@yandex.ru>
To: Sophoklis Goumas <olspookishmagus@gmail.com>, cygwin@cygwin.com
Subject: Re: Why cygwin's history output is prefixed by two spaces?
In-Reply-To: <CAC2zJ1vnuJKefPcZiKi7uueev3-8EBSRQhBBB+NWviVx5xRVDQ@mail.gmail.com>
References: <CAC2zJ1vRh2kks2fx_+Pz1WpJcXevp+Z6xQdzoEXMJwAUHyoFtA@mail.gmail.com> 
 <CAC2zJ1vnuJKefPcZiKi7uueev3-8EBSRQhBBB+NWviVx5xRVDQ@mail.gmail.com>
MIME-Version: 1.0
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
 NICE_REPLY_A, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=no 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
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
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: Andrey Repin via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Andrey Repin <anrdaemon@yandex.ru>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

Greetings, Sophoklis Goumas!

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

history | while read -r id cmd; do echo "$cmd"; done

> 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.


-- 
With best regards,
Andrey Repin
Friday, August 2, 2024 11:37:34

Sorry for my terrible english...


-- 
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
