Re: Trouble Migrating from Windows to Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Cobban <jamescobban@xxxxxxxxxxxx> writes:

> while on Linux it reads:
> 	"~/Windows/Archives/Database/SubDistTable1881.csv"
> and writes to:
> 	"~/Windows/Archives/Database"

Note that on Linux/Unix the name "~" is not special when you call open
or fopen or similar functions.  The name "~" is expanded by the shell;
specifically an unquoted ~ at the start of a pathname, followed by a /,
is replaced by the contents of the environment variable HOME, or, if
HOME is not set, by the home directory of the user executing the shell.
If you are not using the shell, you need to expand "~" yourself.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux