what is the difference?
Joe(theWordy)Philbrook
jtwdyp at ttlc.net
Wed Sep 8 19:55:25 UTC 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It would appear that on Sep 8, Björn Persson did say:
> Note that the "./directory/file" syntax isn't only used in shell scripts. Nor
> is it specifically for executing programs. It's simply a way to reference a
> file relative to the current directory. "." is the current directory, "./file"
> is a file in the current directory, and "./directory/file" is a file in a
> subdirectory of the current directory.
Probably Deepak was thinking ./path/filename was for executing programs
because the default execution path on most linux systems doesn't include .
(for very good reasons of course) And if you want to run a program from
the current directory (when said directory isn't specifically in the
users path) then ./filename or /absolutepathtodir/filename is needed.
It should be noted however that the example Deepak used of:
. /etc/sysconfig/sendmail
would only attempt execution of the same file as:
./etc/sysconfig/sendmail
if, the user is currently in the root "/" directory.
That is if the user was in /root for example, then
./etc/sysconfig/sendmail
would try to execute /root/etc/sysconfig/sendmail and most likely not
find any such file.
- --
| --- ---
| Joe (theWordy) Philbrook <o> <o>
| J(tWdy)P ^
| <<jtwdyp at ttlc.net>> /---\ "bla bla bla..."
| \___/ "...and bla..."
At least I know my mouth is running, I just can't find the off button!
##############################################################
# You can find my public gpg key at http://pgpkeys.mit.edu/ #
##############################################################
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBP2OTRZ/61mwhY94RAkhYAJ0Rvlq+GiEexR7U5vnNbMTm0HNEGgCgpGiX
VRCOSVG+TK2siORHzCShkFw=
=OMDA
-----END PGP SIGNATURE-----
More information about the fedora-list
mailing list