System used is Debain 12.9, no updates.
Bash is the shell in use; it may play a part in interpreting "" strings.
Regards,
sunny
Package: grep
Version: 3.8-5
PATH_TEST="../../dir/dir/dir/dir/@#$%^&*()-_=+\\|;:'\",<.>/?/";
echo "$PATH_TEST" | grep
"^\.\?\.\?\([a-zA-Z0-9@#$%^&*()-_=+\|;:'",<>/?]\+\)\+/\?$";
. is not within the character set portion of the match specification provided
to grep.
../../ is matched; I expect it
Oops! I made an incorrect assumption. The folders listed in the PATH are not
overwritten for Bash and Dash; it is a first match search.
Thanks
Package: base-files
Version: 12.4
If /bin links to /usr/bin, and /usr/bin is in the PATH by default; why include
/bin?
I'm assuming that the PATH is searched right to left (as later declarations
over-write previous declarations), which would mean there is a small to zero
performance reduction.
Package: adduser
Version: 3.134
adduser --disabled-password --no-create-home test-user
The command `cat /etc/passwd` then shows the new user:
test-user:x:1001:1001:Test User,,,:/home/test-user:/bin/bash
The command `ls /home/`, correctly; does not contain an entry for the
'test-user' directory
5 matches
Mail list logo