From d1c8039a915bf2dca456049750fa6a90aeb9f36b Mon Sep 17 00:00:00 2001 From: Kai Neuwerth Date: Tue, 19 Dec 2017 10:40:12 +0100 Subject: [PATCH 1/5] export: add page --- pages/common/export.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/export.md diff --git a/pages/common/export.md b/pages/common/export.md new file mode 100644 index 0000000000..8150f65cd7 --- /dev/null +++ b/pages/common/export.md @@ -0,0 +1,15 @@ +# export + +> Command to set environment variables. + +- Set a new environment variable: + +`export {{VARIABLE}}={{value}}` + +- Echo the value of an environment variable (don't forget the Dollar sign): + +`echo {{$VARIABLE}}` + +- Append something to the PATH variable: + +`export PATH=$PATH:{{/path/to/append}}` From 736925341c5223a729f3099fc3619e5a4cac451f Mon Sep 17 00:00:00 2001 From: Kai Neuwerth Date: Wed, 20 Dec 2017 08:46:14 +0100 Subject: [PATCH 2/5] export: moved to linux directory and created a copy in the osx directory, removed echo example from export.md, added a more detailed description of the export command, added an example how to remove an environment variable --- pages/common/export.md | 15 --------------- pages/linux/export.md | 15 +++++++++++++++ pages/osx/export.md | 15 +++++++++++++++ 3 files changed, 30 insertions(+), 15 deletions(-) delete mode 100644 pages/common/export.md create mode 100644 pages/linux/export.md create mode 100644 pages/osx/export.md diff --git a/pages/common/export.md b/pages/common/export.md deleted file mode 100644 index 8150f65cd7..0000000000 --- a/pages/common/export.md +++ /dev/null @@ -1,15 +0,0 @@ -# export - -> Command to set environment variables. - -- Set a new environment variable: - -`export {{VARIABLE}}={{value}}` - -- Echo the value of an environment variable (don't forget the Dollar sign): - -`echo {{$VARIABLE}}` - -- Append something to the PATH variable: - -`export PATH=$PATH:{{/path/to/append}}` diff --git a/pages/linux/export.md b/pages/linux/export.md new file mode 100644 index 0000000000..28ffe0e56f --- /dev/null +++ b/pages/linux/export.md @@ -0,0 +1,15 @@ +# export + +> Command to mark shell variables in the current environment to be exported with any newly forked child processes. + +- Set a new environment variable: + +`export {{VARIABLE}}={{value}}` + +- Remove an environment variable: + +`export -n {{VARIABLE}}` + +- Append something to the PATH variable: + +`export PATH=$PATH:{{/path/to/append}}` \ No newline at end of file diff --git a/pages/osx/export.md b/pages/osx/export.md new file mode 100644 index 0000000000..28ffe0e56f --- /dev/null +++ b/pages/osx/export.md @@ -0,0 +1,15 @@ +# export + +> Command to mark shell variables in the current environment to be exported with any newly forked child processes. + +- Set a new environment variable: + +`export {{VARIABLE}}={{value}}` + +- Remove an environment variable: + +`export -n {{VARIABLE}}` + +- Append something to the PATH variable: + +`export PATH=$PATH:{{/path/to/append}}` \ No newline at end of file From 90d12d7153759e57ebe50544d69335eea3cec74d Mon Sep 17 00:00:00 2001 From: Kai Neuwerth Date: Wed, 20 Dec 2017 08:47:29 +0100 Subject: [PATCH 3/5] export: added new line to the end of the files --- pages/linux/export.md | 2 +- pages/osx/export.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/linux/export.md b/pages/linux/export.md index 28ffe0e56f..92e0c93225 100644 --- a/pages/linux/export.md +++ b/pages/linux/export.md @@ -12,4 +12,4 @@ - Append something to the PATH variable: -`export PATH=$PATH:{{/path/to/append}}` \ No newline at end of file +`export PATH=$PATH:{{/path/to/append}}` diff --git a/pages/osx/export.md b/pages/osx/export.md index 28ffe0e56f..92e0c93225 100644 --- a/pages/osx/export.md +++ b/pages/osx/export.md @@ -12,4 +12,4 @@ - Append something to the PATH variable: -`export PATH=$PATH:{{/path/to/append}}` \ No newline at end of file +`export PATH=$PATH:{{/path/to/append}}` From c0c8e736a31614db93a8d238ee97320be06b3116 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 20 Dec 2017 17:22:32 +0530 Subject: [PATCH 4/5] remove preceding slash --- pages/linux/export.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/export.md b/pages/linux/export.md index 92e0c93225..c09481e8e2 100644 --- a/pages/linux/export.md +++ b/pages/linux/export.md @@ -12,4 +12,4 @@ - Append something to the PATH variable: -`export PATH=$PATH:{{/path/to/append}}` +`export PATH=$PATH:{{path/to/append}}` From b75a231f43f68d09e52141ab3f439fdc9016f3d9 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Wed, 20 Dec 2017 17:22:53 +0530 Subject: [PATCH 5/5] osx: remove preceding slash --- pages/osx/export.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/osx/export.md b/pages/osx/export.md index 92e0c93225..c09481e8e2 100644 --- a/pages/osx/export.md +++ b/pages/osx/export.md @@ -12,4 +12,4 @@ - Append something to the PATH variable: -`export PATH=$PATH:{{/path/to/append}}` +`export PATH=$PATH:{{path/to/append}}`