I've noticed several problems with redirection in gulam (1.03.04.05) -- most
recently with shar and ssed. I finally narrowed it down to the following
situation.
I wrote a trivial program, args.prg (compiled with mwc) to dump out its
args, the environment, and whether the file handles are ttys. When I run
args a b > junk
I get the output in junk: arg[0] through arg[2] are "args", "a", and "b"; and
handle 1 is not a tty. I then simply *rename* args.prg to shar.prg and run
shar a b > junk
This time the output is to the screen: arg[0] to arg[4] are "shar", "a",
"b", ">", and "junk"; and handle 1 is a tty. I checked that there is not
another "shar" in my path, and that env_type is set to "mw".
The same thing happens if I rename args.prg to ssed.prg, but if I rename it
to (for example) sed.prg then the redirection is correct. The problem
doesn't happen if I use msh instead of gulam.
Does anyone know what is happening?? And is there any possibility of an
upgrade to gulam??
--
Dennis Pixton
Department of Mathematical Sciences (607) 777-4239