[lug] Subshell behavior with potato bash?

Tkil tkil at scrye.com
Thu Jan 20 20:56:21 MST 2000

Chris> f="$(who | grep $(tty | sed s./dev/..))"

hm.  what are you trying to use this for?  it doesn't seem too much
more informative than just "tty" by itself.  further, "last -1" might
be more what you're looking for.  or actually:

   last -1 `id -un`


then again, i don't know what you're trying to do.  :)


More information about the LUG mailing list