[CentOS] Custom wallpaper on CentOS 7?

2015-02-14 Thread Niki Kovacs
Hi, I just installed CentOS 7 + GNOME on my Asus S300 laptop. So far everything runs very nice and smoothly, and I'm quite happy with it. Curiously enough, I can't seem to be able to set a custom wallpaper. I tried various locations like /usr/share/backgrounds, /usr/share/backgrounds/gnome a

Re: [CentOS] C5 BASH IF

2015-02-14 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Try using [[ and ]] rather than [ and ]. Under BASH the double form are reserved words with special meaning to the shell whereas the single form are just a synonym for test. Parsing and splitting rules are different, in particular word splitting and

Re: [CentOS] Custom wallpaper on CentOS 7?

2015-02-14 Thread Earl A Ramirez
On Sat, 2015-02-14 at 10:07 +0100, Niki Kovacs wrote: > Hi, > > I just installed CentOS 7 + GNOME on my Asus S300 laptop. So far > everything runs very nice and smoothly, and I'm quite happy with it. > > Curiously enough, I can't seem to be able to set a custom wallpaper. I > tried various loca

[CentOS] list moderation transparency

2015-02-14 Thread Jim Perrin
I've had a few people ask me privately "Why hasn't X been told", which seems a legitimate question on the surface. Here's what has happened thus far: I've sent a few people emails off-list with examples of what I feel to be inappropriate posts to the list since the announcement. I don't see any n

Re: [CentOS] C5 BASH IF

2015-02-14 Thread Les Mikesell
On Fri, Feb 13, 2015 at 11:54 PM, Always Learning wrote: > >> And third, you generally should use >> double quotes around variables in tests so they continue to exist as >> an empty string if the variable happens to not be set. > > Thanks for that. I assumed if test 1 worked, so would test 2. > >

Re: [CentOS] C5 BASH IF

2015-02-14 Thread Robert Nichols
On 02/13/2015 11:47 PM, Always Learning wrote: I re-ran the script with 'set -x' for 16 if [ $file='law00css' ] 17 then 18echo $file 19echo "css" 20 else 21echo "no css" 22 fi and received:- + '[' law45p07a01=law00css ']' + echo law45p07a01 law45p07a01 + echo css css

Re: [CentOS] C5 BASH IF

2015-02-14 Thread Chris Adams
Once upon a time, Les Mikesell said: > On Fri, Feb 13, 2015 at 11:54 PM, Always Learning wrote: > >> 16 if [ $file = "law00css" ] > > You still missed the part about quoting variables. You quote plain > strings to hold embedded spaces together (or single-quotes to avoid > parsing metacharacter

Re: [CentOS] C5 BASH IF

2015-02-14 Thread J Martin Rushton
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/02/15 16:53, Les Mikesell wrote: > To understand it completely you need to know the order of > operations as the shell makes multiple passes over the line, > parsing, processing metacharacters, and expanding variables. And > I don't know wh

Re: [CentOS] C5 BASH IF

2015-02-14 Thread Les Mikesell
On Sat, Feb 14, 2015 at 11:36 AM, J Martin Rushton wrote: > >> To understand it completely you need to know the order of >> operations as the shell makes multiple passes over the line, >> parsing, processing metacharacters, and expanding variables. And >> I don't know where to find a concise de

Re: [CentOS] C5 BASH IF

2015-02-14 Thread Robert Nichols
On 02/14/2015 12:03 PM, Les Mikesell wrote: On Sat, Feb 14, 2015 at 11:36 AM, J Martin Rushton wrote: To understand it completely you need to know the order of operations as the shell makes multiple passes over the line, parsing, processing metacharacters, and expanding variables. And I don

Re: [CentOS] C5 BASH IF

2015-02-14 Thread Les Mikesell
On Sat, Feb 14, 2015 at 1:13 PM, Robert Nichols wrote: > >> But it is not 'just' expansions. You need to know the full order of >> operations with all the steps - word splitting, quote removal, i/o >> redirection, groupings, etc., some of which is repeated over the line >> after some of the othe

Re: [CentOS] C5 BASH IF

2015-02-14 Thread PatrickD Garvey
On Sat, Feb 14, 2015 at 11:28 AM, Les Mikesell wrote: > On Sat, Feb 14, 2015 at 1:13 PM, Robert Nichols > wrote: >> >>> But it is not 'just' expansions. You need to know the full order of >>> operations with all the steps - word splitting, quote removal, i/o >>> redirection, groupings, etc., so

Re: [CentOS] C5 BASH IF

2015-02-14 Thread Chris Adams
Once upon a time, Les Mikesell said: > I think that is still an oversimplification because more than > expansion is involved and the order related to other steps. When does > it do i/o redirection; which things happen before/during starting > subshells/pipes; what if you use 'eval', etc.? Try th

Re: [CentOS] Custom wallpaper on CentOS 7?

2015-02-14 Thread Niki Kovacs
Le 14/02/2015 13:22, Earl A Ramirez a écrit : I believe that you can change your desktop from 'Tweak Tool', which can be found under | Application | Utilities, under the Desktop option you will see Picture URI. On my desktop I simply right click on the desktop and select 'Change Background'. You

[CentOS] LC_COLLATE variable?

2015-02-14 Thread Niki Kovacs
Hi, I'm running my CentOS 7 desktop in french. LANG is set to fr_FR.UTF-8. In GNOME 3, the menu entries are listed in alphabetical order. Unfortunately, entries beginning with an accented character (like "Éditeur de texte") appear at the bottom of the list. I know that in order to correct th