:: Re: [DNG] bash / quote weirdness
Góra strony
Delete this message
Reply to this message
Autor: Benjamin Riefenstahl
Data:  
Dla: Steve Litt
CC: dng
Temat: Re: [DNG] bash / quote weirdness
Hi Steve,

> Benjamin Riefenstahl said on Thu, 13 Jan 2022 18:19:23 +0100
>>Different code paths within Bash. [...]


Steve Litt writes:
> This is true, but not the explanation for this particular behavior, as
> follows:
>
> [slitt@mydesk ~]$ /usr/bin/cat -n /etc/fstab | cut -b 1-20 | head -n5
>      1    UUID=730eaf92
>      2    UUID=41abb5fd
>      3    UUID=96cfdfb3
>      4    UUID=6F66-BF7
>      5    tmpfs /tmp tm
> [slitt@mydesk ~]$ "/usr/bin/cat -n" /etc/fstab | cut -b 1-20 | head -n5
> bash: /usr/bin/cat -n: No such file or directory
> [slitt@mydesk ~]$ "/usr/bin/cat -n /etc/fstab" | cut -b 1-20 | head -n5
> bash: /usr/bin/cat -n /etc/fstab: No such file or directory
> [slitt@mydesk ~]$


I'm sorry, but I don't see it? Can you point out what is suprising to
you here? Both commands contain "/", and both give the same error
message.

so long, benny