Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • Hmm... standard input over a pipe isn't seekable either. Commented Nov 14, 2019 at 15:09
  • 1
    Your first example lists an error from dd, which doesn't show up under bash. What shell do you use? Commented Nov 14, 2019 at 15:16
  • 1
    I can't reproduce this with cat replacing unzip (I don't have Zip archives) in bash nor zsh on OpenBSD using either of GNU dd or OpenBSD dd. Did you originally have a space before the process substitution? That would make GNU dd complain as you show. Commented Nov 14, 2019 at 15:17
  • 1
    @TobySpeight you got it! I'm using ksh (specifically "Version AJM 93u+ 2012-08-01"). Trying $ echo if=<(:) produces if= /dev/fd/4 (with a rogue leading space). ARGH! Commented Nov 14, 2019 at 17:29
  • 1
    I'll make that an answer, then. Commented Nov 14, 2019 at 17:31