Re: F11: Bug in sh-4.0 source build-in command

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

 



Dne Mon, 03 Aug 2009 20:46:55 +0200 Dario Lesca napsal(a):
> There is a bug in sh-4.0 source command:
> Must specify directory (./file) for filename, without not work.
> 
> > sh-4.0# cd /tmp
> > sh-4.0# echo aaa=ppp > sourcefile
> > sh-4.0# ls -l sourcefile 
> > -rw-r--r-- 1 root root 8  3 ago 20:37 sourcefile
> > sh-4.0# cat sourcefile 
> > aaa=ppp
> > sh-4.0# . sourcefile 
> > sh: .: sourcefile: file not found
> > sh-4.0# source  sourcefile 
> > sh: source: sourcefile: file not found
> > sh-4.0# echo $aaa
> > 
> > sh-4.0# source  ./sourcefile 
> > sh-4.0# echo $aaa
> > ppp
> > sh-4.0# exit
> 
> hope this help.

Not a bug. You're running bash in POSIX mode (probably you ran "sh").
In POSIX mode the current directory is not searched by the source
command. This is documented in the manpage.

Michal

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux