[POSIX] Unsure How to Design a Handler Function

This page summarizes the projects mentioned and recommended in the original post on /r/bash

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • gal

  • I am currently going through the process of cleaning all of my old scripts and ran into an issue I can't seem to figure out how to resolve. In all of my POSIX shell scripts that are used within graphical environments I have a function called prompt_for_input, what this function does is it basically takes an environment variables called PROMPT_MENU and uses that with whatever is passed as the first argument to the function to create, well, a prompt menu. To clear up any confusion here is an example. You could set either of the following lines within your .profile:

  • gffm

  • The issue is that I recently wrote a shell script called gffm which allows you to use a $TERMINAL and a fzf-like menu to mimic the functionality of dmenu. Where this becomes an issue is that fzf, and some menus like it, require that the string passed be placed directly next to the prompt argument. For example with fzf I would have to make run prompt_for_input as:

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project