On 19/10/2007, ropers <[EMAIL PROTECTED]> wrote: > > I'm surprised now. > > I just thought that what I wrote above was stupid, because I thought > that the behaviour of cp was a function of the shell built-in command > cp, not of the OS. > To confirm this, I installed the OpenBSD default shell pdksh on > Ubuntu. However, pdksh on Ubuntu gives the same result as bash on > Ubuntu. So is this a function of the OS after all?
(...) > Strange. > > pdksh on Linux behaves just like bash on Linux, and unlike pdksh on OpenBSD. > I didn't expect that. So does that error message depend on OS APIs > rather than the shell program and its built-in commands? It's official: I am a fucking moron. cp is not a SHELL BUILTIN COMMAND. It's /bin/cp. And of course the same /bin/cp is run regardless which shell is being used. That explains the identical error message. Sorry for the noise.