6828 decimal is 15254 octal! Physical memory: 32768K available, base = 640K, extended = 31744K pages removed from memory 430 check_page_alloc() succeeded! page_check() succeeded! check_boot_pgdir() succeeded! entering idt init enabled interrupts: 1 2 4 Setup timer interrupts via 8259A enabled interrupts: 0 1 2 4 unmasked timer interrupt [00000000] new env 00001000 [00000000] new env 00001001 [00000000] new env 00001002 FS is running FS can do I/O [00001002] fsipc 1 00805000 Device 1 presence: 1 entering super return value is 0 superblock is good the id of this environment is 4097 the id of this environment is 4097 write_block is good read_bitmap is good the id of this environment is 4097 alloc_block is good file_open is good file_get_block is good the id of this environment is 4097 file_flush is good the id of this environment is 4097 the id of this environment is 4097 file_truncate is good the id of this environment is 4097 the id of this environment is 4097 the id of this environment is 4097 the id of this environment is 4097 file rewrite is good done with fs test, preparing to run serve [00001002] fsipc 1 00805000 running sh -x < testshell.sh > testshell.out [00001002] new env 00001003 dispatched to page fault faulting address has proper permissions dispatched to page fault dispatched to page fault faulting address has proper permissions faulting address has proper permissions [00001002] fsipc 4 00805000 dispatched to page fault [00001002] fsipc 4 00805000 faulting address has proper permissions dispatched to page fault faulting address has proper permissions [00001003] fsipc 4 00805000 [00001003] fsipc 4 00805000 [00001003] fsipc 1 00805000 [00001003] fsipc 2 00805000 [00001003] new env 00001004 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 2 00805000 [00001003] fsipc 4 00805000 [00001004] fsipc 2 00806000 [00001003] fsipc 4 00805000 LINE: echo hello world | cat [00001004] fsipc 3 00806000 [00001004] fsipc 2 00806000 dispatched to page fault [00001004] user fault va d0400000 ip 00801559 TRAP frame at 0xf022f1f0 edi 0xcfc01000 esi 0xd0400000 ebp 0xeebfddbc oesp 0xefbfffdc ebx 0x00000019 edx 0x00000000 ecx 0xeebfde68 eax 0x00000023 es 0x----0023 ds 0x----0023 trap 0x0000000e Page Fault err 0x00000007 eip 0x00801559 cs 0x----001b flag 0x00010202 esp 0xeebfddb4 ss 0x----0023 DESTROYing environment because there is not handler registered! [00001004] free env 00001004 [00001003] fsipc 4 00805000 [00001003] exiting gracefully [00001003] free env 00001003 [00001002] fsipc 1 00805000 [00001002] fsipc 1 00805000 [00001002] fsipc 2 00805000 [00001002] fsipc 2 00805000 shell produced incorrect output. expected: === # echo hello world | cat hello world # cat lorem >out # cat out Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. # cat lorem |num 1 Lorem ipsum dolor sit amet, consectetur 2 adipisicing elit, sed do eiusmod tempor 3 incididunt ut labore et dolore magna 4 aliqua. Ut enim ad minim veniam, quis 5 nostrud exercitation ullamco laboris 6 nisi ut aliquip ex ea commodo consequat. 7 Duis aute irure dolor in reprehenderit 8 in voluptate velit esse cillum dolore eu 9 fugiat nulla pariatur. Excepteur sint 10 occaecat cupidatat non proident, sunt in 11 culpa qui officia deserunt mollit anim 12 id est laborum. # cat lorem |num |num |num |num |num 1 1 1 1 1 Lorem ipsum dolor sit amet, consectetur 2 2 2 2 2 adipisicing elit, sed do eiusmod tempor 3 3 3 3 3 incididunt ut labore et dolore magna 4 4 4 4 4 aliqua. Ut enim ad minim veniam, quis 5 5 5 5 5 nostrud exercitation ullamco laboris 6 6 6 6 6 nisi ut aliquip ex ea commodo consequat. 7 7 7 7 7 Duis aute irure dolor in reprehenderit 8 8 8 8 8 in voluptate velit esse cillum dolore eu 9 9 9 9 9 fugiat nulla pariatur. Excepteur sint 10 10 10 10 10 occaecat cupidatat non proident, sunt in 11 11 11 11 11 culpa qui officia deserunt mollit anim 12 12 12 12 12 id est laborum. # lsfd -1 fd 0: name testshell.sh isdir 0 size 126 dev file fd 1: name testshell.out isdir 0 size 1951 dev file # cat script echo This is from the script. cat lorem | num | cat echo These are my file descriptors. lsfd -1 echo This is the end of the script. # sh