Skip to content

RFE: support escaped double quotes in RUN and PROGRAM in udev rules #6835

@jonathanunderwood

Description

@jonathanunderwood

Submission type

  • Request for enhancement (RFE)

systemd version the issue has been seen with

233

Used distribution

Fedora 26

RFE

It would be really useful to support nested and escaped ouble quotes in PROGRAM and RUN directives. For example:

PROGRAM!="/usr/bin/sh -c '/usr/sbin/smartctl -l scterc /dev/$parent | grep -q \"not supported\" && exit 0 || exit 1'", 

Is pretty much impossible to enact without this support. Nesting single quotes and escaping (i.e. '\''not supported'\'') doesn't work in this circumstance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁Request for Enhancement, i.e. a feature requestudev

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions