File: WISHLIST

package info (click to toggle)
clig 1.1.3-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 328 kB
  • ctags: 72
  • sloc: tcl: 1,459; ansic: 253; makefile: 109; sh: 60; csh: 52
file content (49 lines) | stat: -rw-r--r-- 1,801 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49


From: John Lines <john@paladin.demon.co.uk>
One thing which would be very useful would be an ability to limit the
size of string arguments. There have been many cases of attacks on
Unix utilities caused by people supplying very long argument strings
which have overflowed code. If the writer of the utility could rely
on clig to handle truncating string arguments at some size then they
could concentrate on the code they are writing.

For example
 String -t title {Title of document} {size=80}
(maybe maxsize=80 ???)

MY COMMENT: Before I implement this I need better arguments supporting
the idea. Only saying ``lazy C programmers prefer to impose arbitrary
limits'' is not very convincing.

------------------------------

From: Winfried Truemper <winni@xpilot.org>
Ich habe da noch zwei Anregungen: w�re es m�glich, in der Spezifikation
eine Umgebungsvariable anzugeben, die zus�tzliche Kommandozeilenoptionen
enth�lt? Etwa so, wie man das bei "less" und "minicom" auch machen kann.
Ich finde das praktischer als shell-spezifische Aliase.

Und es w�re auch nett, wenn das clig die Optionen aus einer Datei lesen
k�nnte; also ein generischer Ansatz f�r die Konfiguration von Software.
 
MY COMMENT: Good idea, but opens a pandora can. A complete solution
would include configuration from
1) compiled-in defaults (exist already)
2) system-wide config file (e.g. /etc/bla.config)
3) user specific config file (~/.blarc)
4) environment variable (BLA)
5) directory specific config file (./blarc)
6) command line arguments (exist already) 

This is rather a long term project, also depending on the number of
requests I get for it.

------------------------------

From: me
An enumeration type is definitely missing.

MY COMMENT: Will probably be the next thing to do.

------------------------------