help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mimick namespace in bash?


From: Peng Yu
Subject: mimick namespace in bash?
Date: Sun, 3 May 2020 20:53:05 -0500

Hi,

It seems that hash and alias does not support "/" in the command. Is it so?

If it does, it can be used to mimick namespace. Should this feature be
considered to be added to bash?

$ builtin hash -p /usr/local/opt/coreutils/libexec/gnubin/ls my/ls
$ my/ls
-bash: my/ls: No such file or directory

$ alias my/ls=/usr/local/opt/coreutils/libexec/gnubin/ls
-bash: alias: `my/ls': invalid alias name

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]