:: Re: [DNG] [OT] bash / quote weirdne…
Inizio della pagina
Delete this message
Reply to this message
Autore: Hendrik Boom
Data:  
To: dng
Oggetto: Re: [DNG] [OT] bash / quote weirdness
On Wed, Jan 12, 2022 at 05:45:08PM -0500, Steve Litt wrote:
>
> On the other hand...
>
> =======================================
> [slitt@mydesk ~]$ 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 ~]$ "cat -n" /etc/fstab | cut -b 1-20 |  head -n5
> bash: cat -n: command not found
> [slitt@mydesk ~]$ "cat -n /etc/fstab" | cut -b 1-20 |  head -n5
> bash: cat -n /etc/fstab: No such file or directory
> [slitt@mydesk ~]$


So if it has parameters it's a command, and if it diesn't it's just
a file or directory?

-- hendrik