Re: Beginner's question on command substitution



Eze wrote:
Thanks for your reply, Janis. Don't pay too much attention to this
thread... I think I'm still a bit too lost and may re-post in the
future. I did mean the "$@" shortcut in the for loop, and all I can
articulate is that I'm puzzled by the error I get,

-bash: for: command not found

How come bash cannot "find" for? Again, the best explanation may just
be RTFM.

If you want the shell to perform another parsing iteration to interpret
the for statement in the file you can use 'eval'...

eval $( cat myscript )


Janis


Thanks again,

Eze

.



Relevant Pages

  • Re: SP2 Very Very bad for me
    ... Your attempt to fix what you thought was lost may have really caused the loss but I can tell you installing the service pack such that you can still reboot you lost nothing. ... > and it DELETED EVERY WEB PAGE SHORTCUT IN EVERY FOLDER I HAD ON MY DESKTOP. ... Pages and pages of ebay ...
    (microsoft.public.windowsxp.general)
  • OT - BASH question?
    ... doesn't work because the pipe starts a subprocess and anything done ... inside the while loop is lost to the rest of the original process. ...
    (Fedora)
  • Re: Extra bytes
    ... pointer" to be lost. ... IMHO malloc() would have been a better ... I may have scanned the code too quickly but I thought that the realloc was in a loop and that the buffer got expanded as more data was received over the socket. ...
    (comp.unix.programmer)
  • Re: PL/I, COBOL, Advantages, Equivalence, et al
    ... loop variable *after* the loop terminates. ... That requires two explicit instructions plus an explicit declaration, ... You always revert to abuse when you have lost an argument. ... declaration of the index to a loop to improve reliability. ...
    (comp.lang.pl1)
  • Re: Using Case
    ... Sorry Greg, I've lost the previous thread, so I'm not sure what you were doing in the loop ... Sub and call that Sub for each set of changes you need to make with hard coded parameters. ... If I've lost you along the way post the appropriate part of your code and I'll ... Good luck + Cheers - Peter ...
    (microsoft.public.word.vba.general)