mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
Add /dev/{stdin,stdout,stderr} as symlinks to /proc/self/fd/{0,1,2}
Also change /bin/cat to open /dev/stdin if no arguments are provided.
This commit is contained in:
parent
5e9ba2ac84
commit
31f44481f3
2 changed files with 6 additions and 6 deletions
|
@ -13,6 +13,9 @@ mknod mnt/dev/psaux c 10 1
|
|||
mknod mnt/dev/ptmx c 5 2
|
||||
mkdir mnt/dev/pts
|
||||
mknod mnt/dev/gui_events c 66 1
|
||||
ln -s /proc/self/fd/0 mnt/dev/stdin
|
||||
ln -s /proc/self/fd/1 mnt/dev/stdout
|
||||
ln -s /proc/self/fd/2 mnt/dev/stderr
|
||||
cp -vR ../Base/* mnt/
|
||||
chown -vR 100:100 mnt/users/anon
|
||||
cp -v ../Userland/sh mnt/bin/sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue