tech-toolchain archive

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

Re: nbawk: non-terminated string echo x86_6... at source line 73



    Date:        Wed, 22 Nov 2017 18:25:51 +0100
    From:        Edgar =?iso-8859-1?B?RnXf?= <ef%math.uni-bonn.de@localhost>
    Message-ID:  <20171122172550.GS4339%trav.math.uni-bonn.de@localhost>

  | Strangely, bash's dot seems to find files in the current directory.

from man bash ...

              When bash is not in posix mode, the current directory is
              searched if no file is found in PATH.

(that's from the description of the '.' (aka source for csh compat) command.

In general, when using bash, you almost always want to run it in posix mode
(for which the easiest way is to use a link to bash called "sh") - that
disables the more serious posix violations, most of which are only there for
backwards compatibility reasons, while not limiting any of the other extensions.

kre



Home | Main Index | Thread Index | Old Index