[Fedora-i18n-bugs] [Bug 481750] description of "source" in bash in posix mode wrong

bugzilla at redhat.com bugzilla at redhat.com
Sun Feb 1 06:47:45 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=481750


Jerry Amundson <jamundso at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|high                        |low




--- Comment #2 from Jerry Amundson <jamundso at gmail.com>  2009-02-01 01:47:45 EDT ---
(In reply to comment #0)
> Description of problem:
> In :
> bash-3.2-29.fc10.i386
> bash-4.0-rc1.1.fc11.i386
> LANG=C man bash says:
> -----------------------------------------
> source:
> ......
> When bash is not in posix mode, the current directory is 
> searched if no file is found in PATH.
> -----------------------------------------
> 
> However with man-pages-ja-20081015-1.fc10, man bash
> says (in ja_JP):
> -----------------------------------------
> source:
> ......
> bash が posix モードで動作していれば、PATH 中でファイルを見つ
> けられなかった場合には、カレントディレクトリが検索されます。
> -----------------------------------------
> This is quite opposite.

What is the opposite? The en/ja man page descriptions, or the command
behaviour?

> Actually with bash-4.0-rc1.1.fc11:
> -----------------------------------------
> $ rpm -q bash
> bash-4.0-rc1.1.fc11.i386
> $ ls -al eval.sh 
> -rw-r--r-- 1 tasaka1 tasaka1 323 2009-01-27 21:59 eval.sh
> $ sh -c ". eval.sh"
> sh: line 0: .: eval.sh: file not found
> -----------------------------------------
> i.e. in posix mode source in sh does not search for the current
>      directory any more

sh is posix mode, so the above is correct.

$ sh -c ". eval.sh"
sh: line 0: .: eval.sh: file not found
$ bash -c ". eval.sh"
$

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the i18n-bugs mailing list