Synopsis - Issue Tracker

Bug140 Editing

Title parsing stdin does not work
Created on 2007-05-05.13:13:56 by blindvt, last changed 2008-08-29.15:35:33 by stefan.
assigned to stefan priority low
type behavior severity normal
components platform
status closed resolution fixed
depends on superseded by
Add Comment:
File
CC List:? blindvt, stefan

Messages
Author: blindvt Date: 2007-05-05.13:13:54
$ echo "int i;" | synopsis -v -p C -
Error: CppError: unable to read '/tmp/-'

and

$ echo "int i;" | synopsis -v -p C  ;
# no error, no output

$ echo "int i;" | synopsis -v -p C -o stdin.syn
# no error, creates empty/bogus stdin.syn
# since it should be vaguely identical to:

$ cat in.c 
int i;
$ synopsis -v -p C -o file.syn in.c
$ ls -ln
total 12
-rw-r--r-- 1 1000 1000 1252 2007-05-05 15:12 file.syn
-rw-r--r-- 1 1000 1000    7 2007-05-05 15:10 in.c
-rw-r--r-- 1 1000 1000  170 2007-05-05 15:11 stdin.syn
Author: blindvt Date: 2007-05-05.13:22:27
The '/tmp/-' is actually mine. Need to see how i can translate '-' via boost.filesystem into stdin.

The rest is not my error, though :)
Author: stefan Date: 2008-08-29.15:35:30
The 'echo "int i;" | synopsis -v -p C  ;' line now results in a usage message being printed to stdout.
This one was "the bug", right ? The rest is a feature request.
Please submit a new issue (type 'rfe'), preferably with a patch.

Thanks,
History
Date User Action Args
2007-05-05 13:14:00blindvtcreate
2007-05-05 13:22:31blindvtsetmessages: + msg682
2008-08-29 15:35:40stefansetstatus: new
assignedto: (no value)
resolution: (no value)
messages: + msg727
nosy: + stefan