List Info

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




gst does not like file name that contains #?
country flaguser name
United States
2008-04-19 01:29:42
Here it goes:
derekxiaomai:~/unzip$ ls
#a#
derekxiaomai:~/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
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: gst does not like file name that contains #?
country flaguser name
Italy
2008-04-19 01:39:22
> 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
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )