LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-01-2008, 01:28 PM   #1
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527
Blog Entries: 1

Rep: Reputation: 35
What is the difference between DISPLAY= and export DISPLAY=??


What is the difference between DISPLAY-:0.0 and DISPLAY=:10.0 ??

What is the difference between export DISPLAY=:0.0 and export DISPLAY=:0.0 and export DISPLAY=:10.0???

When would it be appropriate to use export DISPLAY=localhost:0.0??
 
Old 09-01-2008, 01:42 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by john test View Post
What is the difference between DISPLAY= and export DISPLAY=??
One sets a variable, the other exports it.
man bash
/^ENVIRONMENT


Quote:
Originally Posted by john test View Post
What is the difference between DISPLAY-:0.0 and DISPLAY=:10.0 ??
The first one is syntactically wrong.

Quote:
Originally Posted by john test View Post
What is the difference between export DISPLAY=:0.0 and export DISPLAY=:0.0 and export DISPLAY=:10.0???
man X
/DISPLAY NAMES

Quote:
Originally Posted by john test View Post
When would it be appropriate to use export DISPLAY=localhost:0.0??
Where ever typing more than necessary is an option ;}



Cheers,
Tink
 
Old 09-01-2008, 02:29 PM   #3
john test
Member
 
Registered: Jul 2008
Distribution: ubuntu 9.10
Posts: 527

Original Poster
Blog Entries: 1

Rep: Reputation: 35
Ok got it man bash-builtins shows the export command and the difference is that export seems to make the variable global

I can get the syntax error of - vs =, but the question was sort of 0.0 vs 10.0 and which one is appropriate in which situation?

man x fails
man X fails
man X/display-names fails

Is Man X distro dependant? I'm starting up on ubuntu 7.10
 
Old 09-01-2008, 05:49 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
When you export a variable in a borne style shell, it becomes part of the environment, and is visible to child processes of that shell.

If you simply set a variable without exporting it, that variable is only visiable inside the shell, and not by child processes.
 
Old 09-01-2008, 06:41 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by john test View Post
Ok got it man bash-builtins shows the export command and the difference is that export seems to make the variable global
Almost ... they're still specific to the one shell, but with
the export they're passed on to child processes

Quote:
Originally Posted by john test View Post
I can get the syntax error of - vs =, but the question was sort of 0.0 vs 10.0 and which one is appropriate in which situation?

man x fails
man X fails
man X/display-names fails

Is Man X distro dependant? I'm starting up on ubuntu 7.10
Hmmm ... works on Slackware "man 7 X"

Shows up in the "SEE ALSO" section of "man Xorg"?



Cheers,
Tink
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Export DISPLAY idk666 Linux - General 3 07-02-2009 11:58 AM
export display problem nkd Linux - Newbie 3 10-04-2007 12:35 PM
export DISPLAY binary_0011 Linux - Newbie 2 10-15-2006 10:09 AM
how to export the display bruse Linux - Networking 18 05-03-2005 09:13 PM
can't export my display to another systems jaybrus Linux - General 1 05-14-2004 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration