was: bash loop troubles

2003-12-07 Thread svartsjel
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

Re: bash loop troubles

2003-12-06 Thread Igor Pechtchanski
On Sun, 7 Dec 2003 [EMAIL PROTECTED] wrote: > Hi, > > I tried to run the following bash script: > > for drive in a b c d e f g h i j k l m n o p q r s t u v w x y z > do >alias ${drive}:="cd /cygdrive/${drive}" > done > > I guess, the syntax for the loop is okay, if I replace the alias line wi

Re: bash loop troubles

2003-12-06 Thread Larry Hall
At 07:57 PM 12/6/2003, [EMAIL PROTECTED] you wrote: >Hi, > >I tried to run the following bash script: > >for drive in a b c d e f g h i j k l m n o p q r s t u v w x y z >do > alias ${drive}:="cd /cygdrive/${drive}" >done > >I guess, the syntax for the loop is okay, if I replace the alias line wi

bash loop troubles

2003-12-06 Thread svartsjel
Hi, I tried to run the following bash script: for drive in a b c d e f g h i j k l m n o p q r s t u v w x y z do alias ${drive}:="cd /cygdrive/${drive}" done I guess, the syntax for the loop is okay, if I replace the alias line with a simple echo command: echo $drive I get a b ... and so