Question : IF..THEN..ELIF conditions

I have inherited some code that I need to understand.

Ine of the conditions says:

if [ condition ]
then
  ..something..
elfif [condition -a condition ]
then
 ... something else ...
fi

I assume the -a means logical AND but I cant see that documented anywhere.
Can anyone confirm that please?

Its Korn Shell on AIX

Answer : IF..THEN..ELIF conditions

Hello stummj,

http://www.cs.princeton.edu/~jlk/kornshell/doc/man93.html#Conditional%20Expressions
-a file
    Same as -e below. This is obsolete.
...
-e file
    True, if file  exists.


Regards,

sunnycoder
Random Solutions  
 
programming4us programming4us