• . /path

    From LockeDown@77:1/105 to All on Wed Jul 10 14:07:58 2019
    Came across this command in a set of instructions to load some items to one
    of our servers and wondering exactly what it does:

    . /etc/profile

    I can see the usage is ". filename [arguments]" but have no idea what it is doing.

    Figured someone here had a better idea as I could not find an easy way to Google an answer for this.

    ---
    |15LockeDown |08(Mickey Frklic) |08[|10mystic|09island|08.|07strangled|08.|07net|08]

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Mystic Island BBS [mysticisland.strangled.net] (77:1/105)
  • From Black Panther@77:1/102 to LockeDown on Wed Jul 10 15:20:24 2019
    On 10 Jul 2019, LockeDown said the following...

    . /etc/profile

    I can see the usage is ". filename [arguments]" but have no idea what it is doing.

    From my understanding, the '.' tells Linux to execute the following script within the current shell, and not create a sub-shell.


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/100 to Black Panther on Wed Jul 10 17:56:16 2019
    From my understanding, the '.' tells Linux to execute the following
    script within the current shell, and not create a sub-shell.

    Correct. Current shell and current user profile.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From LockeDown@77:1/105 to Netsurge on Wed Jul 10 15:41:44 2019
    On 10 Jul 2019, Netsurge said the following...

    From my understanding, the '.' tells Linux to execute the following script within the current shell, and not create a sub-shell.

    Correct. Current shell and current user profile.

    So if by running ". /etc/profile" it is saying to switch to the profile that
    is under /etc/profile? Like a system profile? And is this context now
    switched until I go back to "." by itself?

    ---
    |15LockeDown |08(Mickey Frklic) |08[|10mystic|09island|08.|07strangled|08.|07net|08]

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Mystic Island BBS [mysticisland.strangled.net] (77:1/105)
  • From Netsurge@77:1/100 to LockeDown on Wed Jul 10 19:41:30 2019
    So if by running ". /etc/profile" it is saying to switch to the profile that is under /etc/profile? Like a system profile? And is this context
    now switched until I go back to "." by itself?

    You got it.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Dan Clough@77:1/114 to Netsurge on Wed Jul 10 18:45:00 2019
    Netsurge wrote to Black Panther <=-

    From my understanding, the '.' tells Linux to execute the following
    script within the current shell, and not create a sub-shell.

    Correct. Current shell and current user profile.

    Yep, and the common description of such notation is called
    "sourcing" that script.


    ... Apathy Error: Strike any key...or none, for that matter.
    === MultiMail/Linux v0.52
    --- SBBSecho 3.07-Linux
    * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (77:1/114)
  • From LockeDown@77:1/105 to Dan Clough on Wed Jul 10 16:59:48 2019
    On 10 Jul 2019, Dan Clough said the following...

    Netsurge wrote to Black Panther <=-

    From my understanding, the '.' tells Linux to execute the following script within the current shell, and not create a sub-shell.

    Correct. Current shell and current user profile.

    Yep, and the common description of such notation is called
    "sourcing" that script.

    Thanks all for the quick answers :) I knew this would be the best place to
    ask.

    ---
    |15LockeDown |08(Mickey Frklic) |08[|10mystic|09island|08.|07strangled|08.|07net|08]

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Mystic Island BBS [mysticisland.strangled.net] (77:1/105)
  • From Netsurge@77:1/100 to LockeDown on Wed Jul 10 21:25:54 2019
    Thanks all for the quick answers :) I knew this would be the best place
    to ask.

    We have a few Linux geeks here, lol.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Black Panther@77:1/102 to Netsurge on Wed Jul 10 19:46:24 2019
    On 10 Jul 2019, Netsurge said the following...

    We have a few Linux geeks here, lol.

    I'm not a geek yet, but I'm working on it... ;)


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Netsurge@77:1/111 to Black Panther on Thu Jul 11 22:10:04 2019

    On Wednesday July 10, 2019, Black Panther said to Netsurge...

    I'm not a geek yet, but I'm working on it... ;)

    You are close enough and can keep up with the best of them.

    frank!netsurge ! hysteriabbs.com ! zeus 1.7 ! amiga 4ooo
    --- Zeus BBS 1.5
    * Origin: hysteria - amiga 4ooo - hysteriabbs.com (77:1/111.0)