You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sourcing a file, the sourcing process happens in the dir that the script is running and not in the one specified by cwd. For instance, if one is in /foo and the script below is in /foo/bar/baz, the variable var is equal to foo and not baz. It's possible to add a flag indicating where the sourcing happens?
export var=$(basename $(pwd))
Also, the path src script must always be absolute or can be relative to cwd?
Hi,
When sourcing a file, the sourcing process happens in the dir that the script is running and not in the one specified by
cwd
. For instance, if one is in/foo
and the script below is in/foo/bar/baz
, the variablevar
is equal tofoo
and notbaz
. It's possible to add a flag indicating where the sourcing happens?Also, the path
src
script must always be absolute or can be relative tocwd
?Regards
The text was updated successfully, but these errors were encountered: