From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: copying files with shell built in functions?
Date: Sat, 29 Mar 2003 03:46:44 +0000 [thread overview]
Message-ID: <1030329034644.ZM28190@candle.brasslantern.com> (raw)
In-Reply-To: <20030328201152.E116@pcchazelas.free.fr>
On Mar 28, 8:11pm, Stephane CHAZELAS wrote:
} Subject: Re: copying files with shell built in functions?
}
} On Fri, Mar 28, 2003 at 07:03:47PM +0000, Bart Schaefer wrote:
} [...]
} > zsh% >newfile <oldfile
} >
} > works just fine.
}
} But uses more or cat that generally don't work when there's no
} libc.
True, I forgot about that. (It is sort of silly when the multio code
already has a `while (read()) write()' loop.) There's always:
zsh% print -nr -- "$(<oldfile)" >newfile
or (more fun, but not necessarily less memory intensive)
zsh% zmodload zsh/mapfile
zsh% mapfile[newfile]=$mapfile[oldfile]
prev parent reply other threads:[~2003-03-29 3:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-28 16:59 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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1030329034644.ZM28190@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).