-1

I tried to run the below command in order to procede to install a program:

$ . configure

but after few second the Ubuntu terminal close, without any message. What happened?

Thanks for your time about my issue

Soren A
  • 7,191
Dario
  • 1

1 Answers1

1

By doing that you're running the configure script in the current shell similar to exec bash -e ./configure or simply source ./configure .

Dot followed by a space is equivalent to the source command , but if you want to execute the configure script in the current directory , you have to add a slash between the dot and configure :

./configure

The bash first spawns a new shell then executes it in the child shell.But if you use the source command or . configure , you're actually executing it instead of the current bash process.So your terminal will get closed after that since there's no shell to give you a prompt.