gcs is a simple wrapper script around gc to add the following things to gc:
rlwrap and session file computing is only done for interacive session. If standard input is not a tty, gc is started with the signal handler to remove the temporary file. If the first option on the command line is -x gc is started without the handler.
gcs interprets the first command line parameter to construct the location of a session history file. All other options and parameters (and the first too if it is not used for the session file) are passed to gc. A -h option overwrite the session file from gcs.
For now gcs is an optional script around gc. In a future release gc might move to /usr/lib/gc renaming gcs to gc.
When gcs is started it checks if a command line argument is present and computes the session file from it.
.the session file is ./.session.gc.
./the parameter is used as the filename.
://the session file is searched / located in ~/.config/gc.
If none of the above rules matches, gcs creates a session file
using a named based on the tty and locates that file in either
id -u or /run which should make the session temporary.