Andrew Benton wrote: > On Thu, 15 Dec 2011 16:25:17 -0600 > Bruce Dubbs <[email protected]> wrote: > >> Also, the construct is not explained. I think it should be removed. > > I agree it should be explained, then people can make an informed > choice. I don't mind that it's different from the other pages where > useradd is used.
I still don't see the value: $ sudo useradd -c "D-BUS Message Daemon User" -d /dev/null -u 18 -g messagebus -s /bin/false messagebus || [ $? == 9 ] $ sudo useradd -c "D-BUS Message Daemon User" -d /dev/null -u 18 -g messagebus -s /bin/false messagebus || [ $? == 9 ] useradd: user 'messagebus' already exists In this case it sends a message to stdout. There is a paragraph after the useradd. We don't add && to the last instruction of a segment anywhere in the book the I know of. The only thing || [ $? == 9 ] does is change the return value of the line from it's actual value to either a 1 or a 0. Where is this return value used in the book? -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
