[Bug 198819] [regression] bluetoothctl commands containing newlines are no longer parsed and executed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=198819

Luiz Von Dentz (luiz.dentz@xxxxxxxxx) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luiz.dentz@xxxxxxxxx

--- Comment #1 from Luiz Von Dentz (luiz.dentz@xxxxxxxxx) ---
This might be cause by the use of wordexp:

'The string argument
       Since the expansion is the same as the expansion by the shell (see
sh(1)) of the parameters to a command, the string  s  must
       not  contain  characters  that  would be illegal in shell command
parameters.  In particular, there must not be any unescaped
       newline or |, &, ;, <, >, (, ), {, } characters outside a command
substitution or parameter substitution context.'

Though that should have caused the whole input to be invalid so I wonder if
just the string split not working with ^M for some reason, either way in the
long term we are planning to have proper support for non-interactive mode to
make it easier to interface bluetoothctl with other tools.

-- 
You are receiving this mail because:
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux