LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-16-2010, 10:36 AM   #1
Claude Rains
LQ Newbie
 
Registered: Aug 2009
Location: UK
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
Trouble prepending XDG_MENU_PREFIX to ~/.xinitrc


Hi, I'm almost at the end of installing GNOME on Gentoo and everything has gone fine up until now. However when I try to do:

Code:
sed -i '1i\export XDG_MENU_PREFIX=gnome-' ~/.xinitrc
It comes up with an error saying:

Code:
sed: -e expression #1, char 2: extra characters after command
Which is not very helpful. Does anyone know what the problem is?

Thanks.
 
Old 02-16-2010, 12:33 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
First, that output doesn't seem to match with the command you've posted above. I am not a master at sed but I guess you are running this from a script? In such case, make sure your editor is saving plain text because it seems like there's something in there that you can't see.

If this happens directly from command line I have no idea what the problem is.

In any case, this has nothing specific about Gentoo on it, so I am requesting this to be moved you you can get more audience in a more general forum.
 
Old 02-16-2010, 01:16 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 02-16-2010, 01:50 PM   #4
Claude Rains
LQ Newbie
 
Registered: Aug 2009
Location: UK
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
I guess you are running this from a script?
I'm following the directions from http://www.gentoo.org/doc/en/gnome-config.xml - Code Listing 2.8. This is why I'm confused; surely if I follow what it says in the official guide it'll work?
 
Old 02-17-2010, 02:57 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by Claude Rains View Post
I'm following the directions from http://www.gentoo.org/doc/en/gnome-config.xml - Code Listing 2.8. This is why I'm confused; surely if I follow what it says in the official guide it'll work?
It should work, in fact there's nothing in that command line that would make it fail. Are you sure you wrote that exact command line *verbatim* at your shell without typos or something strange?

Also, out of curiosity, what kind of livedvd or media are you using for the installation (if it's not the Gentoo one)?
 
Old 02-17-2010, 07:29 AM   #6
Claude Rains
LQ Newbie
 
Registered: Aug 2009
Location: UK
Distribution: Gentoo
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
It should work, in fact there's nothing in that command line that would make it fail. Are you sure you wrote that exact command line *verbatim* at your shell without typos or something strange?

Also, out of curiosity, what kind of livedvd or media are you using for the installation (if it's not the Gentoo one)?
I'm using the System Rescue CD but that's unmounted now that Gentoo is installed.
 
Old 02-17-2010, 07:43 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Are you using bash or any other alternative shell with different quoting rules? If you truly didn't commit any mistake when writing the command line that's the only thing I can think of.

By the way, you still didn't say *how* you are running that command. Are you writing it yourself? Are you pasting from the web? Are you running it inside a shell script?

For the look of it, and as I said it above, it looks completely like there's some non-printable character somewhere that's messing up the command, and that could happen easily when you copy/paste from the web.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
prepending text dynamically to a file curos Linux - Newbie 1 02-13-2009 03:29 AM
.xinitrc RAH104 Linux - Newbie 1 06-20-2008 04:27 AM
Help with a simple script for copyright prepending reakinator Programming 5 02-09-2008 07:50 AM
prepending to a string in c nkoplm Programming 8 02-08-2008 08:17 AM
.xinitrc oldsko0l Linux - Software 10 06-10-2006 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:03 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