Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-11 Thread Christian Franke
Thomas Wolff wrote: I use this in .bashrc (to embed $rootmark in an ESC sequence in PS1 later). I think it doesn't have specific dependencies and also it's portable (except the group names are Windows ones...). It's not portable because Windows default user/group names are localized. if i

Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-11 Thread Thomas Wolff
Am 10.04.2014 03:39, schrieb Andrey Repin: Greetings, Achim Gratz! Christian Franke writes: Attached is an updated version of: https://sourceware.org/ml/cygwin/2012-02/msg00806.html I'll put this on hold until the AD integration has landed in Cygwin (which will require some larger changes any

Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-10 Thread Christian Franke
Corinna Vinschen wrote: On Apr 9 23:50, Christian Franke wrote: I used the registry check in the past because it only uses shell builtins and does not rely on specific SID->gid mappings in /etc/group. Especially given that in future there might be no /etc/group to begin with. But even without

Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-10 Thread Achim Gratz
Corinna Vinschen writes: > But even without /etc/group, the administrator's group will have the > gid 544. I think such a test should be sufficient? That's what I've been using for quite some time and I guess that's the right thing to check for. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 N

Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-10 Thread Corinna Vinschen
On Apr 9 23:50, Christian Franke wrote: > Achim Gratz wrote: > >Christian Franke writes: > >>Attached is an updated version of: > >>https://sourceware.org/ml/cygwin/2012-02/msg00806.html > >I'll put this on hold until the AD integration has landed in Cygwin > >(which will require some larger chang

Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-09 Thread Andrey Repin
Greetings, Achim Gratz! > Christian Franke writes: >> Attached is an updated version of: >> https://sourceware.org/ml/cygwin/2012-02/msg00806.html > I'll put this on hold until the AD integration has landed in Cygwin > (which will require some larger changes anyway). > Generally I'd prefer to mo

Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-09 Thread Christian Franke
Achim Gratz wrote: Christian Franke writes: Attached is an updated version of: https://sourceware.org/ml/cygwin/2012-02/msg00806.html I'll put this on hold until the AD integration has landed in Cygwin (which will require some larger changes anyway). Agree. Generally I'd prefer to move such

Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-09 Thread Achim Gratz
Christian Franke writes: > Attached is an updated version of: > https://sourceware.org/ml/cygwin/2012-02/msg00806.html I'll put this on hold until the AD integration has landed in Cygwin (which will require some larger changes anyway). Generally I'd prefer to move such things that depend on perso

[PATCH] base-files-4.2-1: Change prompt if running with admin rights

2014-04-09 Thread Christian Franke
Thanks to Achim Gratz for adopting base-files. Attached is an updated version of: https://sourceware.org/ml/cygwin/2012-02/msg00806.html Christian diff -rup base-files-4.2-1.orig/etc/defaults/etc/bash.bashrc base-files-4.2-1/etc/defaults/etc/bash.bashrc --- base-files-4.2-1.orig/etc/defaults/et