Don't use open function if a command exists

Turns out this is also the case on Haiku.

It also eliminates a fork.

Closes #3487.
This commit is contained in:
Fabian Homborg
2016-10-26 15:48:42 +02:00
parent 075be74cc4
commit 56679d4776
2 changed files with 3 additions and 1 deletions

View File

@@ -9,6 +9,8 @@ open FILES...
`open` opens a file in its default application, using the appropriate tool for the operating system. On GNU/Linux, this requires the common but optional `xdg-open` utility, from the `xdg-utils` package.
Note that this function will not be used if a command by this name exists (which is the case on macOS or Haiku).
\subsection open-example Example