/etc/shrc.d
Adam Gorzkiewicz
adgor at isn.pl
Wed May 5 17:00:03 CEST 2004
Jest kiks:
for i in /etc/shrc.d/*.sh; do
. $i
done
Przy takiej ascetycznej konstrukcji, gdy w /etc/shrc.d nie ma zadnego *.sh -
dostajemy o tym komunikat podczas uruchamiania shella.
Z poprzednią wersją:
for i in /etc/shrc.d/*.sh; do
[ -r $i ] && . $i
done
takiego problemu nie ma.
Co robimy? Przywracamy poprzednią pętelke, czy może tą obecną poprzedzamy
jakimś ifem na obecność *.sh ?
--
Adam Gorzkiewicz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: </mailman/pipermail/pld-devel-pl/attachments/20040505/d089c722/attachment.sig>
More information about the pld-devel-pl
mailing list