delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/06/27/17:42:33

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=WCFVo6WAzqnLZlAL
97IRgqX/SEVgRwFN6Q+kbDp05WXs/eYdHc0FsSg4VNGGqbHg6qOxYprWyv+amqMy
vsxZf+utiQ/0XcfdLDdtS61aoVHfFLJQ0oDXm7w1oFtTKAqgohQ9qJCKy8lx8ZFi
sJS9BT61pOPr3MnxLKxUL3JCxik=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:to:references:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=Le6dPYrwCSn7TwEvIxkclG
Oi/0g=; b=ksVxegwwgyQpZkxGSfySDNfkIuZwUQwKxfFvGHjiCjrIGBW4Wlr4zt
5aeuKmwjYeOMJuXPH5kBG1VXiL5FXWcRQjt3yYfgSHmYfqPMrRFceK0CGp0QQSX0
MholF2ffvQNmwrbYdZCUSOPYsVsoWO8WIxS7ISc6XUUoqTjCy+Wic=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=maker
X-HELO: smtp-out-so.shaw.ca
X-Authority-Analysis: v=2.2 cv=F5wnTupN c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=fHiubOz4_dUmsPLydUUA:9 a=QEXdDO2ut3YA:10
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: Window Maker issues, launching from cygwin
To: cygwin AT cygwin DOT com
References: <CAJ9=ABrvn8gGsca5UUJ00_j9vmnngxz8-vX2rGM6EJ4-KXiZvQ AT mail DOT gmail DOT com>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Message-ID: <1adcd353-b759-d423-3612-78b88a1fa7e1@SystematicSw.ab.ca>
Date: Tue, 27 Jun 2017 15:42:15 -0600
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <CAJ9=ABrvn8gGsca5UUJ00_j9vmnngxz8-vX2rGM6EJ4-KXiZvQ@mail.gmail.com>
X-CMAE-Envelope: MS4wfEF0NqTO277+1z3Hwl0ugMJ20bMXg2XVJZKmcsB3x2bfWpkYigUp2WW3srLnUA/OCuLZZWy4rmvB/RJyFMlxE1hcBihDCUIqMTxyoN1TvwiBnz9+0WIP pPxGWavtAsdCEIn5vJfBJeNMuN3drQKxIe9qPJYuz6piFYMQndGPP/S0rT4+wObPrsOxjbOKHtYGfg==
X-IsSubscribed: yes

On 2017-06-27 14:05, David DLC wrote:
> /etc/X11/xinit/xinitrc-common: line 20: [: too many arguments
> Excessive file argument "Cruz/.Xresources"
> 1 error in preprocessor.
> /etc/X11/xinit/xinitrc: line 20: [: too many arguments

Fix the above two lines 20 in /etc/X11/xinit/xinitrc{,-common}
by adding double quotes around the string containing $HOME, which
might be like the lines below, from the only system script I could
find containing $HOME, where the whole file name is double quoted,
including the embedded $HOME:

$ fgrep '$HOME' /etc/profile.d/bash_completion.sh
        [ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \
            . "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"

If your scripts are similar, such as:
	[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
then you need to double quote both the test and use as in:
	[ -r "$HOME/.Xresources" ] && xrdb "$HOME/.Xresources"
and do the same kind of change in both files.

Many admins, packages, and distros have already made these kinds of
fixes, as more people are using Windows or Mac based home directories
which may have "friendlier" names, served up by Samba, CIFS, or NFS.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019