>>>>> "Peter" == Peter Funk <pf_at_artcom0.north.de> writes:
Peter> Quoting Martin Kraemer:
Peter> [...]
mk> Or, using the Pipe mechanism I saw on this list earlier on (and which I
mk> think would be _very_ useful to include as a standard feature), one
mk> could easily write
mk> Read "| [ -f $HOME/.fvwm2rc ] && cat $HOME/.fvwm2rc || cat /usr/lib/X11/fvwm2/system.fvwm2rc"
Peter> This syntax is very misleading! A leading vertical bar ('|')
Peter> suggests, that the process will open the pipe for writing
Peter> instead of reading.
I thought that initially too, and was thinking that 'Read "< cmd"'
might be better. But then that would look like file redirection...
Peter> It would be much better, if the 'Read' command will check, if
Peter> the last character in the filename argument is a vertical bar
Peter> and then use 'popen' instead of 'fopen'. Martins example from
Peter> above will than be written as
Peter> Read "[ -f $HOME/.fvwm2rc ] && ... ... m2/system.fvwm2rc |"
Peter> ---------------------------------------------------------------^ !!
A little hard to see there I think, but a possibility.
Or better, perhaps a separate command for it (like "ReadPipe" or
something like that). I think quite a while ago a patch like this was
submitted (for 1.24r or an earlier 2.xx) to implement this (and a few
other things). I think I may even have it here. I had planned to add
that one at one point...
Peter> BTW: IMHO lines longer than 80 characters look very awful. One feature
Peter> I am missing at least in fvwm 1.24r is the possibility to introduce
Peter> continuation lines. Since the comment syntax of .fvwm[2]rc is shell
Peter> lookalike, it would make much sense to me, if a backslash ('\') as last
Peter> character in a line would cause the following newline to be ignored.
Haven't been keeping track of the announcements, eh? :) That was
added to 2.0.42, courtesly of Jarl.
Chuck
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu May 30 1996 - 08:36:41 BST