Menu

#1 Portability

open
nobody
None
5
2005-04-09
2005-04-09
No

Changetrack version 4.3 has a couple of portability errors.

These apply to IBM AIX 5.1 and OpenBSD 3.6, at least.

On some systems, the "hostname" command does not accept
a "-f" flag to give the FQDN; it gives it by default
and allows a "-s" flag to give the "short" hostname
without the domain portion.

On many systems, the "rm" command will not recognize
options as such unless they precede the file names. At
line 249 of version 4.3 of the changetrack script,
there's `rm $compfile -f`. To be portable, it should
be `rm -f $compfile` instead.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB