This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Window Maker issues, launching from cygwin
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin at cygwin dot com
- Date: Tue, 27 Jun 2017 15:42:15 -0600
- Subject: Re: Window Maker issues, launching from cygwin
- Authentication-results: sourceware.org; auth=none
- References: <CAJ9=ABrvn8gGsca5UUJ00_j9vmnngxz8-vX2rGM6EJ4-KXiZvQ@mail.gmail.com>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
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