delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/10/24/14:16:17

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=iik1vXkMpV4V82e97NIfQaxprNP6in0f9HOjK1qdCNH
4UXtx6ZRBwESS5JNLiDSJxtL3/izTE2YIQdUpaHaNmPswMjZYPoYZhe0tB8CtVS0
Up18/zz61PFT648HyHe//466nU2lq9uejSCJNZ8dOe7cRVJgjZAEbclH/SYnTUYE
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=wk1F6sE5Xvnw4sLwHsNfhUJmJ2s=; b=H8dmwhkgWBn7yeM9S
1fkzlGdxy5tZmgJ15Nu1/OkfJXjKa2yGtvpOB266esgTHHLY/RhdUsEQamyYVuX/
OT6aoXwcd2WTQCnoIWJa6CNAYlK+35ts0eSVX20sQBKk9HAmiPbpyT7HqxbiHkMk
HE9f7xSDkRb5BXEmSSa6niChyA=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: mout.kundenserver.de
Message-ID: <544A975B.90606@towo.net>
Date: Fri, 24 Oct 2014 20:15:55 +0200
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.33-0.1
References: <announce DOT 20141022092323 DOT GH32374 AT calimero DOT vinschen DOT de> <14710326042 DOT 20141024202019 AT yandex DOT ru> <CAFWoy7Gz24smNHe7Fr7juqiWT9xhjGPxF2fKeaEYmLmRZOZ8dg AT mail DOT gmail DOT com>
In-Reply-To: <CAFWoy7Gz24smNHe7Fr7juqiWT9xhjGPxF2fKeaEYmLmRZOZ8dg@mail.gmail.com>
X-TagToolbar-Keys: D20141024201555876
X-UI-Out-Filterresults: notjunk:1;
X-IsSubscribed: yes

Am 24.10.2014 19:28, schrieb Keith Christian:
> Here's a function for you Andrey, in appreciation for all the work you
> contribute to Cygwin:
>
>
> type uname_r
> uname_r is a function
>
>
> uname_r ()
> {
>      uname -r | sed -e 's/[.(/\)]/_/g' | sed -e 's/\(.*\)\(_$\)/\1/'
> }
>
>
> uname_r
> 1_7_32_0_274_5_3
How about:
function uname-r () {
     uname -r|sed -e 's,(,-,' -e 's,/,_,g' -e 's,),,'
}
uname-r
1.7.33-0.278_5_3


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019