Linux2019. 1. 28. 10:03

먼가 오해를 한거 같은데.. .은 그냥 source 이다.

단순하게 환경변수 설정하는데 쓰는 거지

어떠한 것을 실행하기 위한건 아니란 것..


# .

-bash: .: filename argument required

.: usage: . filename [arguments] 



BASH BUILTIN COMMANDS

       Unless  otherwise  noted, each builtin command documented in this section as

       accepting options preceded by -  accepts  --  to  signify  the  end  of  the

       options.  The :, true, false, and test builtins do not accept options and do

       not treat -- specially.  The exit, logout, break, continue, let,  and  shift

       builtins accept and process arguments beginning with - without requiring --.

       Other builtins that accept arguments but  are  not  specified  as  accepting

       options  interpret arguments beginning with - as invalid options and require

       -- to prevent this interpretation.

       : [arguments]

              No effect; the command does nothing beyond  expanding  arguments  and

              performing any specified redirections.  A zero exit code is returned.


        .  filename [arguments]

       source filename [arguments]

              Read and execute commands from filename in the current shell environ‐

              ment and return the exit status of the  last  command  executed  from

              filename.   If  filename does not contain a slash, file names in PATH

              are used  to  find  the  directory  containing  filename.   The  file

              searched  for  in  PATH  need not be executable.  When bash is not in

              posix mode, the current directory is searched if no file is found  in

              PATH.   If  the  sourcepath  option  to  the shopt builtin command is

              turned off, the PATH is not searched.  If any arguments are supplied,

              they  become  the  positional  parameters  when filename is executed.

              Otherwise the positional parameters are unchanged.  The return status

              is  the  status of the last command exited within the script (0 if no

              commands are executed), and false if filename is not found or  cannot

              be read. 


얜 멀까...

# . ls

-bash: .: /usr/bin/ls: cannot execute binary file 



.과 source는 동일한 건데

admin-openrc.sh 파일을 로드하여 Identity 서비스에 대한 위치와 admin 프로젝트 및 사용자 credential과 함께 환경 변수를 넣어줍니다:


$ source admin-openrc.sh 

[링크 : https://docs.openstack.org/liberty/ko_KR/install-guide-obs/keystone-openrc.html]

'Linux' 카테고리의 다른 글

bcache - SSD write cache  (0) 2019.02.01
bacahe(SSD) + RAID(HDD), 그리고 bcache(ramfs) + RAID(HDD)  (0) 2019.02.01
네트워크 인터페이스 명칭이 이상하다? enp0s0? em0?  (0) 2019.01.23
getopt()  (0) 2018.11.12
mount -o codepage=cp949  (0) 2018.01.04
Posted by 구차니