vincentaxhe has asked for the wisdom of the Perl Monks concerning the following question:
It's for kmonad to run config when new event found, config have to contain variable like thisdeclare -x KBD_DEV="/dev/input/$event" KBDCFG=$(envsubst < /home/vincent/.config/kmonad/$config) kmonad <(echo "$KBDCFG") &
now I want to write it with perl, Is there an elegant way to do the same work of 'envsubst' and <(...) process substitution of shell, no need to use temp file and edit file.input (device-file "$KBD_DEV")
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how perl do 'envsubst'
by NERDVANA (Priest) on Jul 01, 2024 at 04:46 UTC | |
by vincentaxhe (Scribe) on Jul 03, 2024 at 09:57 UTC | |
by NERDVANA (Priest) on Jul 03, 2024 at 18:41 UTC | |
by jo37 (Curate) on Jul 03, 2024 at 19:55 UTC | |
by NERDVANA (Priest) on Jul 03, 2024 at 20:55 UTC | |
by vincentaxhe (Scribe) on Jul 04, 2024 at 05:58 UTC | |
|
Re: how perl do 'envsubst'
by LanX (Saint) on Jun 30, 2024 at 15:40 UTC |