Skip to content
Snippets Groups Projects
  • Javi Merino's avatar
    2b440bb8a66b
    Fixed a bashism with the use of $RANDOM in hgeditor. · 2b440bb8a66b
    Javi Merino authored
    The variable $RANDOM is not POSIX so a portable /bin/sh may not define
    it.  When creating a directory with a random name it's better to use
    mktemp, which, even though is not POSIX, exists in common Unixes
    including Linux, OpenBSD, FreeBSD and MacOS X.
    2b440bb8a66b
    History
    Fixed a bashism with the use of $RANDOM in hgeditor.
    Javi Merino authored
    The variable $RANDOM is not POSIX so a portable /bin/sh may not define
    it.  When creating a directory with a random name it's better to use
    mktemp, which, even though is not POSIX, exists in common Unixes
    including Linux, OpenBSD, FreeBSD and MacOS X.