[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ash vs. bash (was: IFS behaviour)



On Mon, Aug 09, 1999 at 06:57:08AM -0700, Joel Klecker wrote:
 >At 14:54 +0200 1999-08-09, Carlo Strozzi wrote:
 >>#!/bin/sh and then use bash constructs like the tilde expansion for
 >>user homes (~user), arithmetic forms like $((...)) and name expansions
 >>{a,b,c}.
 >
 >Arithmetic expansion is not a bashism. Tilde expansion isn't either.

Oh, fine, that's even better :-). I seem to remember I had problems
with those, but it may be that it was an older version of ash. The one
distributed with slink indeed understands ~user and $((...)).
Again, the advantage over bash for shell scripts and system(3) calls is
size (i.e. startup time) and efficiency:

$ ls -al /bin/ash /bin/bash

-rwxr-xr-x   1 root     root        87788 Sep  8  1998 /bin/ash*
-rwxr-xr-x   1 root     root       426980 Oct 20  1998 /bin/bash*

bye
-- 
Carlo Strozzi
Key fingerprint = CF22 C843 2D81 11D2 DE54  CD02 8FA4 9A94 2483 9893

Against software patents:
http://www.freepatents.org - http://no-patents.prosa.it


Reply to: