08-05-2016
Thank you bakunin for your reply, but your reply is not relevant to my question. I spent a lot of time writing the question and I guess you did not have time to read it as carefully as I had wrote it.
However, your reply did help, in that, while thinking whether it is relevant or not, I finally understood the whole thing.
For the benefit of newbies, I will post my understanding and answers here:
1 and 2. Yes. Of course these labels are misleading, and make the grammar hard to understand for newbies.
3. No. Instead, it is best to apply Rule 7b also to the 2 productions in the grammar, that reduce cmd_prefix to ASSIGNMENT_WORD.
4. No. I misunderstood here how the "rules" are applied. I thought, you first perform the reduction, then somehow apply the rule (which makes no sense). Instead, you use the rule first, in order to allow the reduction.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
There are 2 shell script files sh1 and sh2.
sh2 contains records such as 01 02 03 on different lines.
In sh1, I would like to read each record of sh2 till end of file, concatenate them with a comma(,) and store in a variable.
Can somebody please help me with the sh1 script?
Thanks in... (2 Replies)
Discussion started by: shsandeep
2 Replies
2. Shell Programming and Scripting
There are 2 shell script files sh1 and sh2.
sh2 contains records such as 01 02 03 on different lines.
In sh1, I would like to read each record of sh2 till end of file, concatenate them with a comma(,) and store in a variable.
Can somebody please help me with the sh1 script?
Thanks in... (6 Replies)
Discussion started by: shsandeep
6 Replies
3. Shell Programming and Scripting
I've just written a test harness using ksh.
One of scripts weighed in at 1206 lines.
I came across Eric Raymonds 'Art of Unix programming' on line and he advises against excessively large scripts.
I am very interested to hear people's opinions on this and any experiences they have had. (2 Replies)
Discussion started by: OFFSIHR
2 Replies
4. UNIX for Dummies Questions & Answers
Is HP UNIX and Korn different flavours of unix?
can a korn shell script be written on HP Unix? (4 Replies)
Discussion started by: soujanya_srk
4 Replies
5. Solaris
I just setup a new jumpstart server, and I'm having problems with rules.ok errors.
I'm coming up blank after many Google searches, forum searches, etc.....
This is the error I receive:
Skipped interface e1000g1
Attempting to configure interface e1000g0...
Configured interface e1000g0... (0 Replies)
Discussion started by: christr
0 Replies
6. Programming
Hello,
I am new on PHP scripting .I have shell scripts which I an running currently from linux server but now I want to make a web portal from where I will run all my scripts but the problem is all my scripts ask for parameters so I am getting confused how could I run my shell script from web... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
7. Shell Programming and Scripting
Hi,
I am trying to check if two input files exist before the rest of the scripts is run. Following is the code that I have but it gives me syntax error.
if
then
echo "File not found"
else
echo "File found"
fi (3 Replies)
Discussion started by: nua7
3 Replies
8. Shell Programming and Scripting
Hi all...
This is more of a concensus question than help...
As many of you know I am experimenting with the limitations of Pure POSIX shell scripting.
Q: Is the directory /bin considered part of the Pure POSIX shell or must I stick entirely with the builtins only?
The reason is I... (2 Replies)
Discussion started by: wisecracker
2 Replies
9. Shell Programming and Scripting
Hi all,
I am learning POSIX shell programming, and the book I read, uses the let command for integer arithmetic.
I have downloaded and use the shellcheck program on Linux.
This programs says:
In POSIX sh, 'let' is undefined.
See the screenshot attached.
What is the POSIX... (1 Reply)
Discussion started by: johnprogrammer
1 Replies