On Thu, 2010-03-25 at 13:41 +0100, Per Jessen wrote:
Hi Rodney, What I was trying to demonstrate here was..
1__ ./binary .. on a binary you need the forward / (no spaces ./b*) otherwise no dice. and 2__ . script .. on a script only the dot . (a space between . and s* ) otherwise no dice. They are two different things. You cannot call a binary with 2), but a script can be called with both 1) and 2) - the latter with the twist
Johan wrote: that any variables set by the script also set in the current process.
Per Jessen wrote: 2) is the same as sourcing a script, i.e. to execute it without forking a new shell process.
Which unless you know what you are doing is *not* how you want to run
scripts. If you want to run an application or a script in the current
directory always use "./{filename}".
The rule is simplIf you don't know what "sourcing" and "forking" mean
don't use ". {filename}" unless instructed to do so by someone who knows
what "sourcing" and "forking" mean.
--
Adam Tauno Williams