Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
X
xrdb
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorg
  • app
  • xrdb
  • Merge Requests
  • !2

Open
Created Oct 01, 2020 by Michele Guerini Rocco@rnhmjoj
  • Report abuse
Report abuse

Add actual querying capabilities to -query

  • Overview 0
  • Commits 1
  • Changes 1

The world is littered with broken grep commands because xrdb -query can only dump the database and doesn't implement this simple search feature.

Things I tested:

  • xrdb -query without arguments works the same as before

  • xrdb -query prop prints the value of prop when it exists in the resource database.

  • xrdb -query prop doesn't print anything when prop doesn't exist in the resource database.

  • xrdb -query prop doesn't leak any memory. I run it in valgrind with the --leak-check=full option.

PS: I think Sun took care of the fputs thing by now.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: query