Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Sun, 7 Dec 2003 12:28:31 +0100 (MET) From: svartsjel AT gmx DOT net To: cygwin AT cygwin DOT com MIME-Version: 1.0 Subject: was: bash loop troubles X-Priority: 3 (Normal) X-Authenticated: #624634 Message-ID: <30798.1070796511@www55.gmx.net> X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Igor Pechtchanski wrote: > If I guessed correctly at what you're trying to accomplish (create aliases > *in your current shell* to duplicate cmd.exe's syntax for switching > drives; not at all obvious from the above description), and how you're > doing it (from the inside of a bash *script*), you seem to have forgotten > that scripts run in a subshell, and aliases created within that subshell > will not get propagated back to the parent shell. Perfect, that's it! Indeed, I didn't think of *that*. Thus, placing the loop inside /etc/alias which is sourced from /etc/profile with the line: test -e /etc/alias && . /etc/alias it'll create my intended drive letter assignments a:, b:, c: etc. And Larry's right, this isn't Cygwin specific... Thank you very much, Igor. Greetings, Michael -- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/