bug-bash
[Top][All Lists]
Advanced

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

"." builting not implemented correctly in bash


From: Dominik Vogt
Subject: "." builting not implemented correctly in bash
Date: Wed, 17 Sep 2003 15:02:48 +0200
User-agent: Mutt/1.3.28i

The implementation of the "." shell builtin in bash violates the
POSIX spec:

  $ bash --version
  GNU bash, version 2.05a.0(1)-release (i386-pc-linux-gnu)
  Copyright 2001 Free Software Foundation, Inc.
  $ rm -rf /tmp/foo /tmp/bar
  $ mkdir /tmp/foo /tmp/bar
  $ cd /tmp/foo
  $ echo echo hello > baz
  $ export PATH=/tmp/bar
  $ . baz
  hello

According to the POSIX spec, the shell must not look in the
current directory for the script to execute.

Ciao

Dominik ^_^  ^_^




reply via email to

[Prev in Thread] Current Thread [Next in Thread]