On Wed, Jul 21, 2010 at 8:20 PM, Dave Coventry <[email protected]> wrote: > I couldn't really say, to be honest. > > But that piece of code was working a year or so ago...
I'm not sure. As far as I know "~" is actually shell specific symbol. i.e. try to compile the following code: begin if ParamCount>0 then writeln(ParamStr(1)) end. and launch the program from terminal: "./test ~" (no quotes) instead of "~" you'll your home path. The "~" is handled by the shell (as an environment variable) and converted to the correct full-path before passing it to the application. If you try the same command line on Window, you'll get "~" printed. Because window's shells (except for cygwin, mingwin) are not aware of unix shells conventions home-char "~". I guess RTL/FCL/LCL is working cross-platform way and doesn't treat "~" in any special way, so the same code would work identical on any system. thanks, dmitry -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
