gst does not like file name that contains #?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gst does not like file name that contains #?

Derek Zhou
Here it goes:
derek@xiaomai:~/unzip$ ls
#a#
derek@xiaomai:~/unzip$ gst
GNU Smalltalk ready

st> Smalltalk at: #d put: (Directory name: '.')!
<Directory /home/derek/unzip>
st> d do: [ :name | (d at: name) printNl ]!
Object: '/home/derek/unzip/#a#' error: Invalid argument 20: argument must be
between 22 and 21
SystemExceptions.ArgumentOutOfRange(Exception)>>signal
SystemExceptions.ArgumentOutOfRange(Exception)>>signal:
SystemExceptions.ArgumentOutOfRange class>>signalOn:mustBeBetween:and:
String(ArrayedCollection)>>copyFrom:to:
VFS.VFSHandler class>>for:
VFS.RealFileHandler(VFS.VFSHandler)>>at:
Directory>>at:
optimized [] in UndefinedObject>>executeStatements
VFS.RealFileHandler>>do:
Directory>>do:
UndefinedObject>>executeStatements
nil

I am using gst 3.0.2. It looks like file name that contains $# triggers some
VFS related file name munging.
I don't like weird looking file names myself, but emacs uses #bluh# as
autosaved backup for edited files and I don't like my smalltalk program to
crash:(
Derek


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: gst does not like file name that contains #?

Paolo Bonzini-2

> I am using gst 3.0.2. It looks like file name that contains $# triggers some
> VFS related file name munging.
> I don't like weird looking file names myself, but emacs uses #bluh# as
> autosaved backup for edited files and I don't like my smalltalk program to
> crash:(

Yes, that's why it was changed (incompatibly) in 3.1. :-(

I think you can hack around it saying that a # at the *end* of the name
does not count in VFSHandler class >> #for: (in kernel/VFS.st of 3.0.2).
  Do you want to try making a patch or should I?

Paolo



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk