[dev] [st] Start with text already input

From: Hadrien Lacour <hadrien.lacour_AT_posteo.net>
Date: Fri, 15 Sep 2017 19:39:31 +0200


I'm trying to do what the subject says but I have some troubles. Maybe someone
already have a solution. Here's what I tried:


st -e sh -c "tty >\"$tty\"; exec \"$SHELL\""
sleep 1
printf 'mytext' >"$(cat "$tty")"
rm -- "$tty"

I get the text, but the shell (zsh here) doesn't "detect" it (I can't go back,
delete it or get completion). Any idea?
Received on Fri Sep 15 2017 - 19:39:31 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 15 2017 - 19:48:30 CEST