cancel
Showing results for 
Search instead for 
Did you mean: 

"if" man pages

SOLVED
Go to solution

"if" man pages

I am working in a hp_ux 11.11. I want to get man pages for "if, while" .But I can find those pages in the system. I have access to other general man pages. How can I find them.Do I need to install them seperately?
Thanx.
To get out of a difficulty, one usually must go through it
5 REPLIES
T G Manikandan
Honored Contributor
Solution

Re: "if" man pages

do a

#man 1 sh-posix
Vijaya Kumar_3
Respected Contributor

Re: "if" man pages

The "if" is not a command in Unix. It is a shell built-in. Means it is not there as a executable but will be available in the shell.

So you have to refer to the respective shell manual pages for the reference.

If you use Korn Shell, refer "man ksh"

Thanks
Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Ravi_8
Honored Contributor

Re: "if" man pages

Hi,

"if" is a shell script tool, not an unix command. Hence the man pages not available.
never give up
Hoefnix
Honored Contributor

Re: "if" man pages

also "man test" can give you some usefull information.

Regards,

Peter
Elmar P. Kolkman
Honored Contributor

Re: "if" man pages

To determine what man page to use, do:
type

In your case, 'type if' would return: 'if is a keyword', meaning it is a shell internal. So determine your shell ('echo $SHELL') and request that man page, because it should be described there.
Every problem has at least one solution. Only some solutions are harder to find.