🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11630

csh does not like 8-bit chars, bourne does

#11630
From: Marcel Bernards
Date: Wed, 22 Mar 1989 20:55
40 lines
2182 bytes
Hi there SUN users,

I disovered a strange thing according to file names and wildcards.

somehow I created a file name "\016\317M " ('SO' 'EIGTBIT-O' 'M' 'space')
( I used : 'ls | od -a' )
How ?? I can't find out why!! some cursor messing on mu sun probably..
However, When I tried to remove it with rm ??M? I got:

zappa{marcel}397: rm ??M?
rm: OM : No such file or directory

find does also curious things:

zappa{marcel}403: find . -name ??M? -ok rm {} ; -prune
find: incomplete statement
-prune: Command not found.

switching to the bourne shell seemed more successful in both cases !!

what going on, am I missing something ?? is the csh too smart for
wildcards ??  Or doesn't it like 8-bit chars or ^E's or spaces in the
filename ??

Any suggestions ??

Greetings:
Marcel Bernards, UNIX & Net sysadm Netherlands Energy Research Foundation ECN
P.O. Box 1, 1755 ZG Petten, PHONE: 09 312246 4342 EARN/BITNET:ESU0130@HPEENR51 
IP: marcel%ecn.uucp@nluug.nl UUCP: marcel@ecn.uucp,marcel%ecn.uucp@uunet.uu.net
SCREAMNet : AAAAAARGHH!HUH?? : Disclaimer: "The AntiChrist is the Computer !"

[[ The c-shell uses the eighth bit internally for its own devious
purposes.  The Bourne shell is more co-operative.  Since SunOS is now
supposed to be supporting the extended ASCII character set, this is
something that should be fixed.  Unfortunately, it might be rather hard.
Your find command had problems partly because it depended on c-shell file
name expansion (the same reason "rm" didn't work) and partly because you
should have put a backslash in front of the ";".  You could try to do it
with "rm -ri", but that might take too long.  --wnl ]]
Technical Details
Message-ID: <8903081258.AA13257@ecn.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: ecn!marcel@nluug.nl (Marcel Bernards)
Newsgroups: comp.sys.sun
Subject: csh does not like 8-bit chars, bourne does
Keywords: SunOS
Message-ID: <8903081258.AA13257@ecn.UUCP>
Date: 22 Mar 89 20:55:13 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 40
Approved: Sun-Spots@rice.edu
Original-Date: Wed, 8 Mar 89 13:58:29 +0100
X-Sun-Spots-Digest: Volume 7, Issue 204, message 9 of 13