On Fri, Dec 10, 2004 at 05:19:24PM -0800, Allen Brown wrote: > > > On Thu, 9 Dec 2004, Jacob Meuser wrote: > [cut] > > > I'm not a zsh user. But if you put the following into a file > > > and make it executable it will work no matter what shell you > > > normally use. > > > > yes, this will be a script. I am aware that there are differences > > between the command line and a script, but I figured if it would > > work on the command line, that would be a good first step :) > > > > > #!/bin/bash > > > typeset -i tb=0 > > > for file in *; do tb=$tb+$(wc -c < $file); done > > > echo $tb > > > > well, that doesn't work with OpenBSD's /bin/sh. > > No, it wouldn't. It is written for bash. With a small modification > it will work with ksh. But Boring Shell isn't going to cut it.
OpenBSD's /bin/sh is pdksh. this is BSD, not SysV :) anyway, the whole point is portability. so if it only works for bash, (and since there are several OSes that do not have /bin/bash) and needs modification for other shells, it is no help. -- <[EMAIL PROTECTED]> _______________________________________________ EUGLUG mailing list [EMAIL PROTECTED] http://www.euglug.org/mailman/listinfo/euglug
