Equivalent to “source” in OpenBSD?2019 Community Moderator ElectionWhat is the difference between '.' and 'source' in shells?General questions about OpenBSD source code and release datesopenBSD w/ KDE 3.5 - no text in menus or any gui'scheckinstall package conflicts with pythonSetting up IPSEC on LAN between two hosts (OpenBSD)Issue in activating environment on UAT serverConnect to commercial VPN on OpenBSD 5.9GPAW can't find ase: ModuleNotFoundError: No module named 'ase'OS X - Why is python not properly sourced in `which python`?… and is more broken in the system-level python?Connect external DAC / sound card in OpenBSDPerl script not found when executed from a different directory than the current one
Giant Toughroad SLR 2 for 200 miles in two days, will it make it?
How will losing mobility of one hand affect my career as a programmer?
How to interpret the phrase "t’en a fait voir à toi"?
Calculating the number of days between 2 dates in Excel
Are taller landing gear bad for aircraft, particulary large airliners?
When is separating the total wavefunction into a space part and a spin part possible?
word describing multiple paths to the same abstract outcome
Is it okay / does it make sense for another player to join a running game of Munchkin?
Why are on-board computers allowed to change controls without notifying the pilots?
Can a Bard use an arcane focus?
Can I Retrieve Email Addresses from BCC?
How can I successfully establish a nationwide combat training program for a large country?
Can a malicious addon access internet history and such in chrome/firefox?
Resetting two CD4017 counters simultaneously, only one resets
Perfect riffle shuffles
Can I use my Chinese passport to enter China after I acquired another citizenship?
For airliners, what prevents wing strikes on landing in bad weather?
Latex for-and in equation
Is there any significance to the Valyrian Stone vault door of Qarth?
What is the term when two people sing in harmony, but they aren't singing the same notes?
Is there an wasy way to program in Tikz something like the one in the image?
Greatest common substring
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
Pronouncing Homer as in modern Greek
Equivalent to “source” in OpenBSD?
2019 Community Moderator ElectionWhat is the difference between '.' and 'source' in shells?General questions about OpenBSD source code and release datesopenBSD w/ KDE 3.5 - no text in menus or any gui'scheckinstall package conflicts with pythonSetting up IPSEC on LAN between two hosts (OpenBSD)Issue in activating environment on UAT serverConnect to commercial VPN on OpenBSD 5.9GPAW can't find ase: ModuleNotFoundError: No module named 'ase'OS X - Why is python not properly sourced in `which python`?… and is more broken in the system-level python?Connect external DAC / sound card in OpenBSDPerl script not found when executed from a different directory than the current one
Trying to open a python3 virtual environment I have created with
python3 -m venv myVenv
by doing
source myVenv/bin/activate
as I do in Linux, but I get
ksh: source: not found
which mean it is not in my path/installed. When I try to add it with pkg_add, it just tell me it can't find it. Does OpenBSD use something else that allows me to use venv or what should I do?
python environment-variables ksh openbsd virtualenv
add a comment |
Trying to open a python3 virtual environment I have created with
python3 -m venv myVenv
by doing
source myVenv/bin/activate
as I do in Linux, but I get
ksh: source: not found
which mean it is not in my path/installed. When I try to add it with pkg_add, it just tell me it can't find it. Does OpenBSD use something else that allows me to use venv or what should I do?
python environment-variables ksh openbsd virtualenv
sourceis abashcommand. To switch tobashas your login shell, if this would make your life easier, install thebashport/package and update your login shell withchsh.bashwould be installed as/usr/local/bin/bashon OpenBSD.
– Kusalananda
Mar 4 at 17:42
add a comment |
Trying to open a python3 virtual environment I have created with
python3 -m venv myVenv
by doing
source myVenv/bin/activate
as I do in Linux, but I get
ksh: source: not found
which mean it is not in my path/installed. When I try to add it with pkg_add, it just tell me it can't find it. Does OpenBSD use something else that allows me to use venv or what should I do?
python environment-variables ksh openbsd virtualenv
Trying to open a python3 virtual environment I have created with
python3 -m venv myVenv
by doing
source myVenv/bin/activate
as I do in Linux, but I get
ksh: source: not found
which mean it is not in my path/installed. When I try to add it with pkg_add, it just tell me it can't find it. Does OpenBSD use something else that allows me to use venv or what should I do?
python environment-variables ksh openbsd virtualenv
python environment-variables ksh openbsd virtualenv
edited yesterday
Jeff Schaller
43.8k1161141
43.8k1161141
asked Mar 4 at 16:58
SalviatiSalviati
1318
1318
sourceis abashcommand. To switch tobashas your login shell, if this would make your life easier, install thebashport/package and update your login shell withchsh.bashwould be installed as/usr/local/bin/bashon OpenBSD.
– Kusalananda
Mar 4 at 17:42
add a comment |
sourceis abashcommand. To switch tobashas your login shell, if this would make your life easier, install thebashport/package and update your login shell withchsh.bashwould be installed as/usr/local/bin/bashon OpenBSD.
– Kusalananda
Mar 4 at 17:42
source is a bash command. To switch to bash as your login shell, if this would make your life easier, install the bash port/package and update your login shell with chsh. bash would be installed as /usr/local/bin/bash on OpenBSD.– Kusalananda
Mar 4 at 17:42
source is a bash command. To switch to bash as your login shell, if this would make your life easier, install the bash port/package and update your login shell with chsh. bash would be installed as /usr/local/bin/bash on OpenBSD.– Kusalananda
Mar 4 at 17:42
add a comment |
3 Answers
3
active
oldest
votes
You are using the Forsyth PD Korn shell, the usual login shell on OpenBSD. The PD Korn shell does not have a source command. The source built-in command is only available in some shells. The command that you want is the . command.
Further reading
- What is the difference between '.' and 'source' in shells?
add a comment |
The source keyword which is available in bash is not part of the Posix standard. Instead you can use
. myVenv/bin/activate
You could use the same syntax with . in bash which you are using on your Linux system.
add a comment |
As an alternative, you can simply launch a new bash shell, and source it there:
ksh$ bash
bash$ source myVenv/bin/activate
(myVenv) bash$ python ...
As a bonus, this gives you an easy way to deactivate the venv and return to a pristine environment: just exit from the bash shell and you'll return to ksh!
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504305%2fequivalent-to-source-in-openbsd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are using the Forsyth PD Korn shell, the usual login shell on OpenBSD. The PD Korn shell does not have a source command. The source built-in command is only available in some shells. The command that you want is the . command.
Further reading
- What is the difference between '.' and 'source' in shells?
add a comment |
You are using the Forsyth PD Korn shell, the usual login shell on OpenBSD. The PD Korn shell does not have a source command. The source built-in command is only available in some shells. The command that you want is the . command.
Further reading
- What is the difference between '.' and 'source' in shells?
add a comment |
You are using the Forsyth PD Korn shell, the usual login shell on OpenBSD. The PD Korn shell does not have a source command. The source built-in command is only available in some shells. The command that you want is the . command.
Further reading
- What is the difference between '.' and 'source' in shells?
You are using the Forsyth PD Korn shell, the usual login shell on OpenBSD. The PD Korn shell does not have a source command. The source built-in command is only available in some shells. The command that you want is the . command.
Further reading
- What is the difference between '.' and 'source' in shells?
answered Mar 4 at 17:12
JdeBPJdeBP
37.5k478180
37.5k478180
add a comment |
add a comment |
The source keyword which is available in bash is not part of the Posix standard. Instead you can use
. myVenv/bin/activate
You could use the same syntax with . in bash which you are using on your Linux system.
add a comment |
The source keyword which is available in bash is not part of the Posix standard. Instead you can use
. myVenv/bin/activate
You could use the same syntax with . in bash which you are using on your Linux system.
add a comment |
The source keyword which is available in bash is not part of the Posix standard. Instead you can use
. myVenv/bin/activate
You could use the same syntax with . in bash which you are using on your Linux system.
The source keyword which is available in bash is not part of the Posix standard. Instead you can use
. myVenv/bin/activate
You could use the same syntax with . in bash which you are using on your Linux system.
edited Mar 4 at 17:34
answered Mar 4 at 17:08
BodoBodo
2,271618
2,271618
add a comment |
add a comment |
As an alternative, you can simply launch a new bash shell, and source it there:
ksh$ bash
bash$ source myVenv/bin/activate
(myVenv) bash$ python ...
As a bonus, this gives you an easy way to deactivate the venv and return to a pristine environment: just exit from the bash shell and you'll return to ksh!
add a comment |
As an alternative, you can simply launch a new bash shell, and source it there:
ksh$ bash
bash$ source myVenv/bin/activate
(myVenv) bash$ python ...
As a bonus, this gives you an easy way to deactivate the venv and return to a pristine environment: just exit from the bash shell and you'll return to ksh!
add a comment |
As an alternative, you can simply launch a new bash shell, and source it there:
ksh$ bash
bash$ source myVenv/bin/activate
(myVenv) bash$ python ...
As a bonus, this gives you an easy way to deactivate the venv and return to a pristine environment: just exit from the bash shell and you'll return to ksh!
As an alternative, you can simply launch a new bash shell, and source it there:
ksh$ bash
bash$ source myVenv/bin/activate
(myVenv) bash$ python ...
As a bonus, this gives you an easy way to deactivate the venv and return to a pristine environment: just exit from the bash shell and you'll return to ksh!
answered Mar 4 at 19:15
Daniel PrydenDaniel Pryden
20916
20916
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504305%2fequivalent-to-source-in-openbsd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
sourceis abashcommand. To switch tobashas your login shell, if this would make your life easier, install thebashport/package and update your login shell withchsh.bashwould be installed as/usr/local/bin/bashon OpenBSD.– Kusalananda
Mar 4 at 17:42