Last active
April 20, 2018 17:31
-
-
Save dtzWill/3518d55f307060e9b1f75de77a7d8be0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@localhost ~]$ cat ./result | |
/dev/pts: | |
total 0 | |
drwxr-xr-x 2 nobody nogroup 6 Apr 20 16:15 . | |
drwxr-xr-x 4 nobody nogroup 155 Apr 20 16:15 .. | |
/dev/ptmx: | |
does not exist! | |
/dev/pts/ptmx: | |
does not exist! | |
/dev | |
|-- [lrwxrwxrwx] fd -> /proc/self/fd | |
|-- [crw-rw-rw-] full | |
|-- [crw-rw-rw-] null | |
|-- [drwxr-xr-x] pts | |
|-- [crw-rw-rw-] random | |
|-- [drwxrwxrwt] shm | |
|-- [lrwxrwxrwx] stderr -> /proc/self/fd/2 | |
|-- [lrwxrwxrwx] stdin -> /proc/self/fd/0 | |
|-- [lrwxrwxrwx] stdout -> /proc/self/fd/1 | |
|-- [crw-rw-rw-] tty | |
|-- [crw-rw-rw-] urandom | |
`-- [crw-rw-rw-] zero | |
3 directories, 9 files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
will@dtznix:~/cur/pty$ cat ./result 11:16:51 on 18-04-20 | |
/dev/pts: | |
total 4 | |
drwxr-xr-x 2 nobody nogroup 0 Apr 20 16:16 . | |
drwxr-xr-x 4 nobody nogroup 4096 Apr 20 16:16 .. | |
crw-rw-rw- 1 nobody nogroup 5, 2 Apr 20 16:16 ptmx | |
/dev/ptmx: | |
lrwxrwxrwx 1 nobody nogroup 13 Apr 20 16:16 /dev/ptmx -> /dev/pts/ptmx | |
/dev/pts/ptmx: | |
crw-rw-rw- 1 nobody nogroup 5, 2 Apr 20 16:16 /dev/pts/ptmx | |
/dev | |
|-- [lrwxrwxrwx] fd -> /proc/self/fd | |
|-- [crw-rw-rw-] full | |
|-- [crw-rw-rw-] kvm | |
|-- [crw-rw-rw-] null | |
|-- [lrwxrwxrwx] ptmx -> /dev/pts/ptmx | |
|-- [drwxr-xr-x] pts | |
| `-- [crw-rw-rw-] ptmx | |
|-- [crw-rw-rw-] random | |
|-- [drwxrwxrwt] shm | |
|-- [lrwxrwxrwx] stderr -> /proc/self/fd/2 | |
|-- [lrwxrwxrwx] stdin -> /proc/self/fd/0 | |
|-- [lrwxrwxrwx] stdout -> /proc/self/fd/1 | |
|-- [crw-rw-rw-] tty | |
|-- [crw-rw-rw-] urandom | |
`-- [crw-rw-rw-] zero | |
3 directories, 12 files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "test"; | |
nativeBuildInputs = [ tree ]; | |
buildCommand = '' | |
(for x in /dev/pts /dev/ptmx /dev/pts/ptmx; do | |
echo "$x: " | |
if [[ -e $x ]]; then | |
ls -la $x | sed 's/^/ /' | |
else | |
echo " does not exist!" | |
fi | |
done | |
tree -p /dev | |
) > $out | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This resulted in PR against Nix, for any lost souls!