rc-scripts
Pawel Krawczyk
kravietz at ceti.pl
Thu Oct 7 15:02:07 CEST 1999
On Thu, Oct 07, 1999 at 02:53:54PM +0200, Artur Frysiak wrote:
> Czyli wypada stosować konstrukcje:
> if test "ble" = "$ble"; then
> fi
> Choć i tak nie ma sie pewności który 'test' sie uruchamia (build-in czy z
> sh-utils).
Już rozumiem problem... Problem w tym że poza `test' i `[', które są
wbudowane w bash i ksh, każdy shell definiuje własne wersje tych poleceń.
Jak piszesz `if [' to uruchamia się wbudowany test, żeby używać tego
z sh-utils trzeba by pisać `if /usr/bin/['. W przypadku basha można to
obejść także definiując `alias test=/usr/bin/test' i to działa.
--
Pawel Krawczyk, CETI internet, Krakow. http://ceti.pl/~kravietz/
More information about the pld-devel-pl
mailing list