Recent

Author Topic: How determine current user folder (tilde in Bash)?  (Read 274 times)

Borneq

  • Full Member
  • ***
  • Posts: 238
How determine current user folder (tilde in Bash)?
« on: January 24, 2020, 09:29:57 pm »
Linux shell have tilde as shortuct of current user filder, but program in Pascal or C not knows tilde.
How get this folder ?
also: how get user name and in WIndows get path to c:\user\USER?

GAN

  • Sr. Member
  • ****
  • Posts: 265
Lazarus 1.8.4 FPC 3.0.4 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html