![]() |
Re: What is fi or "the fi command" in Linux/Unix?
Quote:
fi-fi-fo-fum, I suspect a shell script-run. sorry, couldn't resist |
Re: What is fi or "the fi command" in Linux/Unix?
Quote:
(A) If ... fi; else ... fi rather than (B) If ... else ... fi which is what I'd have expected. But when I went with (B) (that is, without the first fi), the script didn't work. With (A) I had success. Is there an "implicit if" in "RC=$?" or something like that? |
Re: What is fi or "the fi command" in Linux/Unix?
The if's and fi's have to be balanced. Assuming there are no more "if"'s in (A) in the dotted parts, then (A) will definitely NOT work.
In the original post, unless there is an additional "if" in the beginning, the first snippet is not valid. Which would explain why th unmounting didn't work. The second snippet looks correct (and is the one that is supposed to be working anways). What's the problem? Martin |
Re: What is fi or "the fi command" in Linux/Unix?
Isn't it time to...
daerht |
All times are GMT. The time now is 19:59. |
vBulletin® Version 3.8.8