home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.24 / text0055.txt < prev    next >
Encoding:
Text File  |  1991-09-03  |  654 b   |  17 lines

  1. Submitted-by: ZV0012%DMSWWU1C.BITNET@VM1.gatech.edu (Kai Henningsen)
  2.  
  3. In article <1991Jul19.033239.8917@uunet.uu.net>, karish@mindcraft.com (Chuck
  4. Karish) says:
  5. >A puzzle for the reader (maybe this is obvious to everyone but
  6. >me):  How can a shell script determine whether it's running on
  7. >a POSIX.2 system?  If it calls getconf and getconf does not
  8. >exist, the shell may exit.  It could call getconf in a
  9. >subshell, but that's ugly and expensive.
  10.  
  11. I don't know what POSIX says, but I'd expect an analog to POSIX.1 -
  12. an environment variable telling which version of POSIX we are.
  13. POSIX.1 does the same with #define.
  14.  
  15. Volume-Number: Volume 24, Number 56
  16.  
  17.