]> git.pld-linux.org Git - projects/rc-scripts.git/blame - DEVELOPMENT
- propset test
[projects/rc-scripts.git] / DEVELOPMENT
CommitLineData
de1fc6ce
JR
1 READ THIS BEFORE CHANGEING SOMETHING IN RC-SCRIPTS PACKAGE
2 Arkadiusz Miskiewicz <misiek@pld.org.pl>
52c53926 3 $Id: DEVELOPMENT,v 1.3 2002/01/22 23:45:27 gotar Exp $
de1fc6ce
JR
4
51)
6 consult all major changes with people on pld-rc-scripts@pld.org.pl
7mailing list. This is very important.
8
92)
10 use 'typeset' for local variables in functions for example:
11
12function_ble ()
13{
14typeset qw er
15qw=$(tty)
16er=/dev/console
17echo "$qw $er"
18}
19
203)
21 use $() instead `` for command execution for example
22
23something=$(whoami)
24instead of
25something="`whoami`"
26
274)
28 consider using typeset -i variable for integer variables
29
305) don't use sed ! It only causes one more Requires.
31 Use awk ' { gsub(/pattern/,"replaced"); print $0; } ' for that.
52c53926 32 Also try to replace grep calls with awk calls.
de1fc6ce
JR
33
345)
35 (PL) Tlumaczac komunikaty na PL nalezy uzywac formy bezosobowej np:
36
37uruchamianie uslugi
38zamiast
39uruchamiam usluge
This page took 0.110024 seconds and 4 git commands to generate.