Re: cat /dev/urandom
From: Gary W. Swearingen (garys_at_opusnet.com)
Date: 07/27/05
- Previous message: Chuck Swiger: "Re: Squid. No not Squidward. and FreeBSD"
- In reply to: Michael Beattie: "Re: cat /dev/urandom"
- Next in thread: Lane: "Re: cat /dev/urandom"
- Reply: Lane: "Re: cat /dev/urandom"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Michael Beattie <mtbeedee@gmail.com> Date: Tue, 26 Jul 2005 18:03:43 -0700
I don't use backticks, so this'll have the equivalent "$()".
The command: cat /dev/urandom
is passed to the shell and the shell executes "cat" and sends
the output to the screen without possibility of executing anything
(except the magic stuff recognized by your terminal emulator -- I hope
it can't execute stuff).
The command: $(cat /dev/random)
is passed to the shell, where it does "command substitution" on
it first and then executes it, where "it" is the output of the
cat command, which could be destructive.
Simpler tests are:
pwd
echo pwd
$(echo pwd)
echo $(echo pwd)
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
- Previous message: Chuck Swiger: "Re: Squid. No not Squidward. and FreeBSD"
- In reply to: Michael Beattie: "Re: cat /dev/urandom"
- Next in thread: Lane: "Re: cat /dev/urandom"
- Reply: Lane: "Re: cat /dev/urandom"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|