On 2021/06/29 14:09, [email protected] wrote:
L A Walsh via austin-group-l at The Open Group dixit:

  along those lines:

/tmp pwd >& /dev/zero
-bash: /dev/zero: Permission denied
/tmp> echo $?
1
/tmp> cd ~>& /dev/zero                  #note the command isn't executed
-bash: /dev/zero: Permission denied
/tmp>

What? WHAT?

Could you please translate that to proper sh syntax?
I know the GNU bash extension >& (which incidentally
violates POSIX on the parse level) but not ~>&…
POSIX doesn't allow 'cd ~' to change to your home
directory?  Um...you sure about that?
How about:

"/tmp cd ~ >& /dev/zero"

"Violates POSIX on the parse level?!"  Eek!  Next
it will be "dogs and cats, living together, real
end-of-the-world stuff". shaking-my-head :^|


          • Re... Stephane Chazelas via austin-group-l at The Open Group
          • Re... Vincent Lefevre via austin-group-l at The Open Group
      • Re: utilit... Robert Elz via austin-group-l at The Open Group
        • Re: ut... Vincent Lefevre via austin-group-l at The Open Group
        • Re: ut... mirabilos via austin-group-l at The Open Group
          • Re... Vincent Lefevre via austin-group-l at The Open Group
  • Re: utilities and w... L A Walsh via austin-group-l at The Open Group

Reply via email to