Window Maker issues, launching from cygwin

Brian Inglis Brian.Inglis@SystematicSw.ab.ca
Tue Jun 27 21:42:00 GMT 2017


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



More information about the Cygwin mailing list