I use Fvwm Version: 1:2.6.5.ds-3 from Debian.

The only thing I found in "QUOTING" section in fvwm(1) that quoted characters
are spaces (when using single/double/back quotes).

I check quoting with Perl module:

  my $module = new FVWM::Module(
    Name => "XXX",
    Mask => M_STRING,
    Debug => 1,
  );

  sub xxx {
    my ($module, $event) = @_;
    my ($action, @args) = get_tokens($event->_text);
    $module->send("1st arg: " . $action);
  }

  $module->addHandler(M_STRING, \&xxx);
  $module->event_loop;

I test:

  SendToModule XXX.pl XXX
  [fvwm][Echo]: 
  Kbdd unknown action: XXX

  SendToModule XXX.pl "XXX"
  [fvwm][Echo]: 
  Kbdd unknown action: XXX

  SendToModule XXX.pl "XXX YYY"
  [fvwm][Echo]: 
  Kbdd unknown action: XXX YYY

  SendToModule XXX.pl XXX YYY
  [fvwm][Echo]: 
  Kbdd unknown action: XXX

  # With TAB
  SendToModule XXX.pl "XXX      YYY"
  [fvwm][Echo]: 
  Kbdd unknown action: XXX      YYY

  # With TAB
  SendToModule XXX.pl XXX       YYY
  [fvwm][Echo]: 
  Kbdd unknown action: XXX

So TABs and SPACEs quoted by single/double/back-quote characters.

Exec uses same convention:

  Exec xmessage "XXX"
  SHOW: XXX
  Exec xmessage '"XXX"'
  SHOW: "XXX"
  Exec xmessage XXX        YYY
  SHOW: XXX YYY
  Exec xmessage "XXX        YYY"
  SHOW: XXX        YYY

But:

  Echo XXX
  [fvwm][Echo]: 
  XXX

  Echo "XXX"
  [fvwm][Echo]: 
  "XXX"

  Echo "XXX YYY"
  [fvwm][Echo]: 
  "XXX YYY"

So seems that Echo is special form and don't follow traditional Fvwm quoting
convention... Is that true or this is a bug?

-- 
Best regards!


Reply via email to