On Sun, Jan 16, 2005 at 11:55:09AM +0100, Michelle Konzack wrote:
> Note:   I am not the Maintainer !
> > and BSD.  I know leaving it out will default to stdin and stdout but
> > I should also be able to specify it specifically.
> > 
> > On Sid:
> > 
> > [EMAIL PROTECTED] ~ $ ^at^cat
> > cat /bin/echo | dd if=/dev/stdin bs=1 count=1234
> > dd: opening `/dev/stdin': No such file or directory
> > [EMAIL PROTECTED] ~ $ 
> 
> [EMAIL PROTECTED]:~ > cat /bin/echo |dd bs=1 count=123 >/tmp/out 2>&1
> ELF??4t&4 
> (44?4????????123+0
>  Records ein
> 123+0 Records aus
> 
> 
> Any problems ?
> 
> It works on SLINK, POTATO, WOODY, SARGE and SID


I said, with if= parameter.  If it is left out it defaults to stdin.
BTW, you would need special handling in scripts that make use of dd that
need to both use /dev/stdin and other files.

What makes you think that if=/dev/stdin is illegal?

-- 
char p[] = "\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b"
  "\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb\x89\xd8\x40\xcd"
  "\x80\xe8\xdc\xff\xff\xff/bin/sh";

Reply via email to