From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22773 invoked by alias); 16 Jun 2014 20:03:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 22764 invoked by uid 89); 16 Jun 2014 20:03:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: s87.webhostingserver.nl Received: from s87.webhostingserver.nl (HELO s87.webhostingserver.nl) (195.211.73.4) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 16 Jun 2014 20:03:43 +0000 Received: from loadbalance01.mail.antagonist.nl ([141.138.168.72] helo=proxy01.mail.antagonist.nl) by s87.webhostingserver.nl with esmtp (Exim 4.73) (envelope-from ) id 1Wwd80-001zqG-EU for cygwin@cygwin.com; Mon, 16 Jun 2014 22:03:40 +0200 Received: by mail-lb0-f171.google.com with SMTP id s7so3191624lbd.16 for ; Mon, 16 Jun 2014 13:03:39 -0700 (PDT) X-Received: by 10.152.10.40 with SMTP id f8mr2570408lab.75.1402949019768; Mon, 16 Jun 2014 13:03:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.130.10 with HTTP; Mon, 16 Jun 2014 13:03:09 -0700 (PDT) In-Reply-To: <539F3EC5.6040403@breisch.org> References: <1402944031.26368.YahooMailNeo@web172202.mail.ir2.yahoo.com> <539F3EC5.6040403@breisch.org> From: Frank Fesevur Date: Mon, 16 Jun 2014 20:03:00 -0000 Message-ID: Subject: Re: Change PS1 when running as administrator To: "cygwin@cygwin.com" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00190.txt.bz2 2014-06-16 21:00 GMT+02:00 Chris J. Breisch: > You might want to look at this thread: > https://sourceware.org/ml/cygwin/2014-04/msg00256.html Thanks for showing this threads. Missed it back then. > I use the registry test, but the id method would also work. I think the id command is a better way since it tells you that the user is member of the administrator group. That really tells you what you need to know. But the registry trick will work almost always, I sure :-) Regards, Frank -- 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