From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12324 invoked from network); 10 Oct 2002 23:15:08 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 10 Oct 2002 23:15:08 -0000 Received: (qmail 24264 invoked by alias); 10 Oct 2002 23:14:29 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5431 Received: (qmail 24250 invoked from network); 10 Oct 2002 23:14:24 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15782.2502.448029.49725@idiom.com> Date: Thu, 10 Oct 2002 16:14:14 -0700 (PDT) From: Eric De Mund To: "Rau'l Nu'n~ez de Arenas Coronado" Cc: Zsh Users Subject: Re: Recursion and shell functions In-Reply-To: <20021010211547.GD10963@DervishD> References: <20021010194154.GA10963@DervishD> <20021010211547.GD10963@DervishD> X-Mailer: VM 6.75 under Emacs 20.4.1 Reply-To: Eric De Mund X-Humans-Reply-To: Eric De Mund X-URL: X-POM: The Moon is Waxing Crescent (26% of Full) Organization: Ixian Systems, Inc. [ Discussion moved from zsh-workers here to zsh-users. --Eric] Rau'l, Rau'l Nu'n~ez de Arenas Coronado : > First of all, please excuse this a-bit-off-topic question, but I need > to know if a feature available in zsh is portable. Jason Price : > You could re-invent the wheel, but why? > (cd ; tar -cpvf - .) | ( cd ; tar -xpf -) Rau'l Nu'n~ez de Arenas Coronado : > The aim is to depend only on the shell and POSIX utilities (like 'cp', > 'rm, etc... you know.). I want to impose little or no dependencies. > 'tar' is not a good solution for me, I prefer 'pax', although is not > as extended by now, 'rsync' seems to big for copying a few bunch of > files, and 'ssh'... well... I love Zsh, but is it the right tool for this job? If dependency or contrib software minimization is a requirement, I'm not sure how Zsh got picked. In the past, when I've only been permitted one tool to do a job that a system's supplied Bourne(-like) shell wasn't capable of perform- ing, I've chosen Perl. If that hadn't been appropriate, I would have perhaps next chosen BusyBox: BusyBox (combines tiny versions of many common UNIX utilities into a single small executable, providing a fairly complete POSIX environment for small or embedded systems) http://www.busybox.net/ Everybody likes screenshots. Here's BusyBox's: +----------------------------------------------------------------------------+ | $ ./busybox | | BusyBox v0.60.3 (2002.04.27-10:33+0000) multi-call binary | | | | Usage: busybox [function] [arguments]... | | or: [function] [arguments]... | | | | BusyBox is a multi-call binary that combines many common Unix | | utilities into a single executable. Most people will create a | | link to busybox for each function they wish to use, and BusyBox | | will act like whatever it was invoked as. | | | | Currently defined functions: | | [, basename, busybox, cat, chgrp, chmod, chown, chroot, chvt, | | clear, cp, cut, date, dd, df, dirname, dmesg, du, echo, env, false, | | find, free, grep, gunzip, gzip, halt, head, id, init, kill, killall, | | klogd, linuxrc, ln, logger, ls, lsmod, mkdir, mknod, mkswap, modprobe, | | more, mount, msh, mv, pidof, poweroff, ps, pwd, reboot, reset, | | rm, rmdir, sed, sh, sleep, sort, swapoff, swapon, sync, syslogd, | | tail, tar, test, touch, true, tty, umount, uname, uniq, uptime, | | wc, which, whoami, xargs, yes, zcat | | | | $ _ | | | +----------------------------------------------------------------------------+ Regards, Eric -- "Larry Wall wrote the original Perl in 1986-87, the same two successive years he won the IOCCC. ...this was no fluke... Perl and Obfuscation are as insepar- able as, say, camels and humps." --David Lowe Eric De Mund | Ixian Systems, Inc. | 53 49 B2 23 AF 6C 20 81 http://www.ixian.com/ead/ | Mountain View, CA | ED DD 4C 81 AA C9 D1 A5