[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Non-regular rc files?
From: |
Brian L. Matthews |
Subject: |
Non-regular rc files? |
Date: |
6 Feb 2001 11:37:04 -0800 |
I've been using an old version of bash (1.14.7(1) specifically) and have
a script that creates an xterm running a command, but I want it to be
running in an interactive shell so if I kill the command, the window sticks
around so I can look at it's output or rerun the command, etc. I've
accomplished this with something like:
xterm ... -e /bin/bash -rcfile <(echo command)&
Unfortunately it appears that bash 2.x requires that the rcfile be a
regular file, as I get:
bash: /dev/fd/63: not a regular file
when I do a /bin/bash --rcfile <(echo echo hello)
So, is there any way to get bash to read an rcfile from a /dev/fd, or a
better way to create my xterms?
Thanks,
Brian
- Non-regular rc files?,
Brian L. Matthews <=