There is a problem with "else" branch in /appl/cmd/mk/mksubdirs:
for j in $DIRS {
if { ftest -d $j } {
echo 'cd' $j '; mk' $MKFLAGS $stem
cd $j; mk $MKFLAGS $stem; cd ..
} else {
! { ftest -e $j }
}
}
1) Word "else" produce syntax error in Inferno.
2) Test in else branch looks like supposed to return error to mk in case
non-directory with that name exists. Not sure is this test makes sense at all,
but it will work only for last directory in $DIRS.
Possible fix is:
for j in $DIRS {
if { ftest -d $j } {
echo 'cd' $j '; mk' $MKFLAGS $stem
cd $j; mk $MKFLAGS $stem; cd ..
} {
! ftest -e $j || raise $j^' not a directory'
}
}
Original issue reported on code.google.com by powerman...@gmail.com on 5 Dec 2012 at 4:56
Original issue reported on code.google.com by
powerman...@gmail.com
on 5 Dec 2012 at 4:56