Say I have a function f defined in my bashrc
function f() {
date
}
I want to run following command to monitor the output
watch f
.
The command failed with "**sh: f: command not found**".
watch bash -c f
gives the same.
How to get this watch command working as intended?
Asked by user607722
(141 rep)
May 7, 2023, 04:38 PM
Last activity: Sep 21, 2023, 07:37 AM
Last activity: Sep 21, 2023, 07:37 AM