zsh-users
 help / color / mirror / code / Atom feed
* copying files with shell built in functions?
@ 2003-03-28 16:59 Dominik Vogt
  2003-03-28 17:30 ` Borzenkov Andrey
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dominik Vogt @ 2003-03-28 16:59 UTC (permalink / raw)
  To: Zsh Users

In a fit of mental derangement, my colleagues tried to exchange
the libc on a machine at run time and used 'mv' to rename the
file.  As you might imagine, they regretted that immediately :-)

Can anyone think of a way to copy or rename a file with only shell
built in functions?  (either zsh or bash)  I have tried things
like

  $ while read <options> X; do echo <options> "$X"; done < ifile > ofile

and

  $ echo $(< ifile) > ofile

(does not work because echo destroys XR and LF)

or

  $ cat <<EOF > ofile
  $(< ifile)
  EOF

(does not work because it still needs a cat and the here document
is mangled.

Bye

Dominik ^_^  ^_^


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-03-29  3:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28 16:59 copying files with shell built in functions? Dominik Vogt
2003-03-28 17:30 ` Borzenkov Andrey
2003-03-28 17:46 ` Stephane CHAZELAS
2003-03-28 18:00 ` Zefram
2003-03-28 19:03   ` Bart Schaefer
2003-03-28 19:11     ` Stephane CHAZELAS
2003-03-29  3:46       ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).