Re: [OpenWrt-Devel] [PATCH] base-files: Add /etc/shinit for non-login shell init

2020-04-25 Thread Petr Štetiar
Jeffery To [2019-05-03 02:24:27]: Hi, > Because /etc/profile (and ~/.profile) are read by login shells only, > aliases and functions defined there are not available to non-login > shells, e.g. when using screen or tmux. > > If the ENV environment variable exists (exported by /etc/profile or > ~

[OpenWrt-Devel] [PATCH] base-files: Add /etc/shinit for non-login shell init

2019-05-02 Thread Jeffery To
Because /etc/profile (and ~/.profile) are read by login shells only, aliases and functions defined there are not available to non-login shells, e.g. when using screen or tmux. If the ENV environment variable exists (exported by /etc/profile or ~/.profile) and references an existing file, then all