X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 93A5E3858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmx.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666166048; bh=VMnhbv9+EKvnqbrZ6Hf54lnTZiWMtSqAC3XAwdj9nck=; h=X-UI-Sender-Class:Date:Subject:To:References:Reply-To:From: In-Reply-To; b=O/98WY1ciNao3006sEpiGoClbwCNLdz6L5guQ9/25XGvouziDqhD5XcUgj7fE84Ve aUynTQgx9OYwMcOinADTAS0QJDt0MAZnWSvInVjM1ilPfmzuiVOpFqHCeg0CEzZafr g9jurEjTJNRyWOhUi7wVvsSFp/SO59Fp9ix/PWBE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Message-ID: Date: Wed, 19 Oct 2022 08:54:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: substitute for xclip? Content-Language: en-GB To: cygwin AT cygwin DOT com References: <20221019065805 DOT GA17124 AT tik DOT uni-stuttgart DOT de> <8819f31f-3e53-001a-e16a-03ae500e2f70 AT gmx DOT com> From: Sam Edge In-Reply-To: <8819f31f-3e53-001a-e16a-03ae500e2f70@gmx.com> X-Provags-ID: V03:K1:cwcddhVIO2Pn03ORaxziO7xFet17y8Xch0q/bNXBSxNRC4JfXTt ylhvdKAfxFPEBFjpBZfGKZ3QJfnTLiWKkcimjsbQ3rWhEzWETNaVMOtLQN6hGIZP60Seb7O 4pJYun8GXZ0UVgu8TU9kr27Cx8gwzV/n2o/uZN9RogUOupO93R7JAlOlJL8uHwIkibFMgwx ZZgOxMOOb2AtuUtUKhuNQ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c3dYc9EGwAYV6TyTc 9TF1Ch4ZtPqPCNuKJGxnOsjlLjA1W60oA18t2s3v/KZjwCINDU66jL2a6VNK4GDCaAcRqqSqd /MjLTtjfiHeu5i0+0IHe6TVW23679SpGGCGbY6TGH6GQKVvsbramCeCR1iv0YY11oD655vgQu 8y5aArDTzJpxRDx0ntg4ubEbQfPFC1M3TPlQnb9dVOp7Q2/qkmc3irqcraGYgeyS7ozYPdRsr bczEAQBe9h8xbOk03MHgSXEITOigOqkk54n4qjfcroWDSyMjBvXcUgqyv1OsHoJmOwB4atF3U bdl9AGMDJguP923NDufCoLUEqcCmMqbJR4Ny8Y7rA3spIvlcIe1iPOJwOI8Hkhr/Ip/Bn8Nez SRdEMLzxW0RFY7b3JqTS6ND1gGNNVYeKtmVDS5Tz3ho7HJGHasxyOQkA0uTpoVUjcDhoBPkJp PR9oPPuIjYjjTkWwr5k4DsgachV3hfV3gOZJnelpme0pBan6YoGYfZwq0rQq4PVHVqtXcNkoR cu/u6C7Ws9GTSmJ73CdHHrRT5u8dg9sXUqP8rp5FkbQtW X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" H again. Or you can use:- #!/bin/bash shopt -s lastpipe powershell -command Get-Clipboard | mapfile array_variable for multiline. -- Sam Edge On 19/10/2022 08:44, Sam Edge wrote: > Hi there. > > In the absence of a Cygwin-native utility, how about? > > x="$(powershell -command Get-Clipboard)" > > You can pipe to the Windows 'clip' utility to go the other way or use > 'powershell -command Set-Clipboard'. > > But I agree, a Cygwin utility would be nice, unless there already is one? > > -- > Sam Edge > > On 19/10/2022 07:58, Ulli Horlacher wrote: >> With Linux I am using xclip to read the X11 clipboard. >> Is there a cygwin equivalent to read the Windows clipboard? >> >> My use case is: >> The user copies file names to the clipboard and then starts a program >> which processes these files. >> >> > -- 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