[openstack-dev] [docs] About the convention to use '.' instead of 'source'.

Jeremy Stanley fungi at yuggoth.org
Sat Feb 17 21:03:13 UTC 2018


On 2018-02-17 13:47:02 -0500 (-0500), Hongbin Lu wrote:
[...]
> If anyone can clarify the rationals of this convention, it will be
> really helpful.
[...]

There's a trade-off here: while `.` is standardized in POSIX sh
(under Utilities, Dot in the specification), it's easy to miss when
reading documentation and/or cutting and pasting from examples. On
the other hand, `source` is easier to see but was originally unique
to csh (which lacks `.`) and subsequently borrowed by the bash shell
environment as an alias for `.` ostensibly to ease migration for
users of csh and its derivatives. The `source` command is not
implemented by a number of other popular shells however, which may
make it a poor interoperability choice (given csh is an arguably
less popular shell these days) unless we assume a specific shell
(e.g., bash).
-- 
Jeremy Stanley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20180217/7d5fe8db/attachment.sig>


More information about the OpenStack-dev mailing list