logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

mkfifo.t (523B)


  1. #!/usr/bin/env cram
  2. # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. # SPDX-License-Identifier: MPL-2.0
  4. $ export PATH="$TESTDIR/../cmd:$PATH"
  5. $ test "$(command -v mkfifo)" = "$TESTDIR/../cmd/mkfifo"
  6. $ mkfifo foo
  7. $ test -p foo
  8. $ rm foo
  9. $ touch exists
  10. $ mkfifo exists
  11. mkfifo: Failed creating FIFO at 'exists': File exists
  12. [1]
  13. $ rm exists
  14. $ mkfifo /dev/null/e/no/ent
  15. mkfifo: Failed creating FIFO at '/dev/null/e/no/ent': Not a directory
  16. [1]
  17. $ find .
  18. .