rc-scripts (/etc/rc.d/rc i klopoty z awk)
Bartosz Waszak
waszi at pld.org.pl
Mon May 1 10:47:46 CEST 2000
Z ostatnich commitów /etc/rc.d/rc wyszedl mi dziwny bląd:
# Say something ;)
af2="`termput setaf 2`"
af7="`termput setaf 7`"
text="`nls "%sResource Manager: %sRunlevel has been reached" "$af2" "$af7"`"
text_size="`nls "%sResource Manager: %sRunlevel has been reached" "" ""`"
unset af2 af7
echo -n "$text"
awk "BEGIN { for (j=length(\"$text_size\")-9; j<$INIT_COL; j++) printf \".\" }"
echo "`termput setaf 6`[`termput setaf 2` $runlevel `termput setaf 6`]`termput setaf 7`"
wykłada się na text_size który niby nie ma parametrów (jak się wpisze
$af{2,7} to jest OK.
taki błąd mi wali:
awk: run time error: not enough arguments passed to printf("%sZarzadca
zasobow: %sZostal osiagniety poziom")
--
-=[ Bartosz Waszak ]--[ The best diplomat I know is a fully ]=-
-=[ waszi at pld.org.pl ]==[ activated phaser bank. -- Scotty ]=-
-=[ Linux User #153066 ]--[ ]=-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: </mailman/pipermail/pld-devel-pl/attachments/20000501/faae6ad1/attachment.sig>
More information about the pld-devel-pl
mailing list