home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / hp / 8736 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.9 KB

  1. From: maj@hpfcso.FC.HP.COM (Mike Jassowski)
  2. Date: Thu, 30 Jul 1992 15:38:44 GMT
  3. Subject: Re: "source" on HP-UX
  4. Message-ID: <7371190@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!usc!sdd.hp.com!hpscdc!cupnews0.cup.hp.com!hppad.waterloo.hp.com!hppad!hpfcso!maj
  7. Newsgroups: comp.sys.hp
  8. References: <1992Jul29.110828.16235@hp9000.csc.cuhk.hk>
  9. Lines: 30
  10.  
  11. > Does anyone know if HP-UX the "source" command (or equivalent) ?
  12.  
  13. 'Source' is a csh built-in.  The equivalent in ksh or sh is '.'
  14.  
  15. --Mike Jassowski
  16. egex() are kept in /lib/libPW.a.  Unfortunately,
  17. > >       /lib/libPW.a also contains some functions that have the same names as
  18. > >       functions contained in the default C library, /lib/libc.a.  To prevent
  19. > >       unexpected results due to these name conflicts, always search libc
  20. > >       before searching libPW.  This is done with the ld (or cc) command line
  21. > >       option sequence -lc -lPW which satisifies all standard C functions
  22. > >       from libc then searches libPW for the regcmp() and regex() functions
  23. > >       (there is also an implied -lc following the explicit -lPW to satisfy
  24. > >       any additional C functions required by regcmp() and regex()).
  25. > Of course, if you do this, then ld will simply grab all the routines in
  26. > libc.a instead of using shared libraries (and X is bloated enough software
  27. > as it is even with the shared libraries being used).
  28.  
  29. The warning cited above is a little out of date.  The libc library
  30. exists in both archived form and in shared lib form.  Unless you take
  31. pains otherwise, -lc will cause the shared lib form of libc to be used
  32. to satisfy externals.  Thus there's no real advantage to rolling your
  33. own shared lib or even making a special purpose archived lib.  In fact,
  34. I see a risk in doing so because it freezes in any library routines
  35. which otherwise might be updated during subsequent system releases.
  36.  
  37. Mike McNelly
  38. mike@fc.hp.com
  39. (Not a spokesman for anybody but myself)
  40.