home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / tcl / 1915 < prev    next >
Encoding:
Text File  |  1992-11-21  |  789 b   |  24 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!menudo.uh.edu!sugar!nhandel
  3. From: nhandel@NeoSoft.com (Nick Handel)
  4. Subject: Problem doing "file stat" on some filenames
  5. Organization: ParaNet, Inc.
  6. Date: Sat, 21 Nov 1992 19:06:04 GMT
  7. Message-ID: <By2yE5.CMo@NeoSoft.com>
  8. Lines: 14
  9.  
  10.  
  11.   I've been unable to find a simple way of doing a file stat operation
  12.   on filenames that begin with a tilde (~) character, without tcl
  13.   interpreting it as a user id, for example:
  14.  
  15.   set fileName "~interleaf.backupfile"
  16.   file stat $fileName foo
  17.  
  18.   tells me there is no such user as "interleaf.backupfile".
  19.   Any suggestions?
  20.  
  21. -- 
  22. --Nick Handel                         "If we knew what the hell we were doing, 
  23.   nhandel@sugar.NeoSoft.com            it wouldn't be research..."
  24.