Bug in /bin/csh: echo "`date`" in script
George Robbins
grr at cbmvax.UUCP
Thu Jul 13 05:31:02 AEST 1989
In article <49802 at csvax1.cs.tcd.ie> Eamonn McManus <emcmanus at cs.tcd.ie> writes:
> There is a bug in the Ultrix 3.0 csh which was not present in Ultrix 2.2.
> I would guess that support for 8-bit characters is the reason for the change.
>
> #!/bin/csh
> echo "`date`"
> causes character 0xFF to be output before each character of the date.
There are quite a few places where 8-bit characters vs. traditional
internal "quoting" mechanisms or their replacements read threir ugly
head.
The workaround for this one is supposedly to install /usr/new/csh (aka tcsh)
as /bin/csh. Supposedly tcsh doesn't have this bug and is otherwise
reasonably compatible. You also get an inactivity logout, which can be
irritating unless you put 'unset autologout' in your .login file.
Other places with 8-bit screw-ups:
When csh types out "job names" with the jobs command, fg, bg and when
a task terminates.
When you use one of the filename substitition metachacters in a shell
escape from vi/ex. Example: :!pr % will get 'pr: can't open xyz'
even though xyz already exists.
--
George Robbins - now working for, uucp: {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing arpa: cbmvax!grr at uunet.uu.net
Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)
More information about the Comp.unix.ultrix
mailing list