From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!paganini.bofh.team!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 11 Sep 2017 19:23:18 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Beginner in Mac OS X, and ADA and gtkAda: $prefix, and what bin, and home is usr/bob or OSX Users/bob Date: Mon, 11 Sep 2017 20:23:17 -0400 Organization: IISS Elusive Unicorn Message-ID: References: User-Agent: ForteAgent/8.00.32.1272 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.68.179.164 X-Trace: sv3-BO3bjGd89jLhUUrKKcYfUKnhyOY1nml6SS6aCg9GXpU8Py/lAODi4hqMwHlVO9lICcF4gK53wS5bkr8!tFd9KjUPtzYyITBQZFhpXYDzVFgwdO+IbOc2LTcRQMR++rTCVDkysQWGqwYW25x3Uhqxp9/XQMtG!8K6vSEjxYqjzpXGxQuV807xu9AVB X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3754 Xref: news.eternal-september.org comp.lang.ada:48027 Date: 2017-09-11T20:23:17-04:00 List-Id: On Mon, 11 Sep 2017 16:17:51 -0700 (PDT), Mace Ayres declaimed the following: >Sorry for some beginner's questions, but. > >New to Mac OSX. Various software instructions may say home directory; is that OS X ./USERS/Me >or Unix's /usr/me: > >Sometime they refer to the bin directory. Which bin? > >Some instructions say $prefix .. what prefix is that? > >Is this even an understandable question? None of these questions are applicable to Ada itself -- they are all dependent upon the operating system in use, so the answer is really in the OS documentation or guide books. However... Linux (UNIX) home directory is normally /home/{username} and often accessible using ~ wulfraed@stretch:~$ cd ~ wulfraed@stretch:~$ pwd /home/wulfraed wulfraed@stretch:~$ I do not know how Mac handles paths. In Linux, a leading "./" indicates current directory (and is often used when one is trying to run a local executable that is NOT in the search path: ./program or ./scriptfile -- for safety, Linux will not run programs in the current directory by name only, to avoid trojans; if someone had stuffed a virus program called, say, gcc in your home directory, and you try to compile something by typing "gcc -o myprog myprog.c" it will ignore the virus file and use the system gcc -- but "./gcc -o myprog myprog.c" would run the virus file ) /usr is NOT a home directory! It is a location where non-OS applications tend to be installed... Normally, "bin" is likely the one at the root level of the file system (root is a simple /): wulfraed@stretch:~$ ls / bin home lib32 media root sys vmlinuz boot initrd.img lib64 mnt run tmp vmlinuz.old dev initrd.img.old libx32 opt sbin usr etc lib lost+found proc srv var wulfraed@stretch:~$ ... however, you will also find a bin under /usr wulfraed@stretch:~$ ls /usr bin games include lib lib32 libx32 local sbin share src wulfraed@stretch:~$ (sbin tends to be for privileged applications -- stuff that affects how the system itself operates and may need root privileges to execute) "$prefix" means the value of the environment variable "prefix" wulfraed@stretch:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games wulfraed@stretch:~$ (I don't have a "prefix" variable defined, so I used the command search path) -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/