Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: copying files with shell built in functions?
- X-seq: zsh-users 5997
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxxxxx>
- Subject: Re: copying files with shell built in functions?
- Date: Sat, 29 Mar 2003 03:46:44 +0000
- In-reply-to: <20030328201152.E116@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030328165928.GB14934@xxxxxx> <20030328180001.GB6040@xxxxxxxx> <1030328190347.ZM27599@xxxxxxxxxxxxxxxxxxxxxxx> <20030328201152.E116@xxxxxxxxxxxxxxxxxx>
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]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author