Questions for tcsh user. ":" and "goto" at shell prompt.
by kaz2100 from LinuxQuestions.org on (#5P0YB)
Hya,
I have been using tcsh for my system. I ran into two questions, which initially I thought would be easy, but not quite.
Question 1 Why am I not getting any error with ":" at prompt.Code:>:
> I do not think ":" has special meaning except for history expansion. ";" at prompt does not raise error, which can be explained with tcsh grammar. I think it should raise an error like "," at prompt.
Question 2 How to get out when "goto a:" by mistake at prompt? With ctrl-D, occasionally works, but if so, ctrl-Z is supposed to work, but not. (like cat > /dev/null)
Both questons may be related to label. So far, I cannot figure out grammar hiding behind.
Has any expert ever run into this?
regards
Happy Penguins!
I have been using tcsh for my system. I ran into two questions, which initially I thought would be easy, but not quite.
Question 1 Why am I not getting any error with ":" at prompt.Code:>:
> I do not think ":" has special meaning except for history expansion. ";" at prompt does not raise error, which can be explained with tcsh grammar. I think it should raise an error like "," at prompt.
Question 2 How to get out when "goto a:" by mistake at prompt? With ctrl-D, occasionally works, but if so, ctrl-Z is supposed to work, but not. (like cat > /dev/null)
Both questons may be related to label. So far, I cannot figure out grammar hiding behind.
Has any expert ever run into this?
regards
Happy Penguins!