[ANNOUNCEMENT] TEST RELEASE: Cygwin 1.7.33-0.1

Thomas Wolff towo@towo.net
Fri Oct 24 18:16:00 GMT 2014


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



More information about the Cygwin mailing list