This forum is dedicated to basic help and support :
Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.
Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer
by ofbodur » Apr 30th, '13, 23:05
I entered the following command in a .sh file
- Code: Select all
#!/bin/bash
foreach num ($*)
repeat $num echo -n "."
echo ""
end
after executing it, It gave me the error below:
./neww.sh: line 2: syntax error near unexpected token `('
./neww.sh: line 2: `foreach num ($*)'I don't know where the problem is.. Can you help me guys?
There is nothing worse than having failed to explain what you believe.
-

ofbodur
-
- Posts: 35
- Joined: Mar 10th, '13, 12:33
- Location: Istanbul
-
by Per » May 2nd, '13, 06:20
foreach is a Tcl command and not bash if I'm not mistaken.
Last edited by
doktor5000 on May 2nd, '13, 07:23, edited 1 time in total.
Reason: removed fullquote
-
Per
-
- Posts: 24
- Joined: Jul 30th, '11, 17:58
Return to Basic support
Who is online
Users browsing this forum: No registered users and 1 guest