24 Jun 2012 03:52
halrun -f option broken in master
It was brought to my attention that starting halrun with the -f option
but no file name is broken in master.
This will break pncconf and stepconf live testing and any other
program that does something like this: (in python)
self.halrun = os.popen("halrun -sf > /dev/null", "w")
the reason seems to be the upgrade Dewey added to halrun.in
a snipit:
INTERACTIVE=""
inifile=""
theargs=""
while getopts "f:hi:kqsvIRQTUV" opt ; do
case $opt in
h) help; exit 0;;
U) halcmd -R
halcmd stop
halcmd unload all
$REALTIME stop
exit 0;;
f) filename=$OPTARG;;
i) inifile=$OPTARG;;
by using getopts with f: halrun now requires the -f option to always have
a file name.
Is there a way to fix this?
(Continue reading)
RSS Feed