Results 1 to 2 of 2
Hi everybody,
I have read that commands which will be excuted in between curly braces ( { } ) will be executed in the current shell only.
But I am ...
- 04-19-2007 #1Linux Newbie
- Join Date
- Jul 2004
- Posts
- 143
excuting commands with { }
Hi everybody,
I have read that commands which will be excuted in between curly braces ({ }) will be executed in the current shell only.
But I am getting the following error...
# {pwd;ls;}
bash: syntax error near unexpected token `}'
What would be the problem. Please help me..
Thanks Inadvance,
Mummaneni.
- 04-19-2007 #2there should be a space after { and between ; and }.# {pwd;ls;}
Code:{ pwd;ls; }It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First


Reply With Quote