Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: This is not a pipe

by pijll (Beadle)
on Mar 12, 2005 at 08:59 UTC ( [id://438912]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re^2: This is not a pipe
in thread This is not a pipe

-p is a test operator, so your expression is more or less equivalent to a question: "Is _ (=this) not a pipe?".

At least in Unix, '|' is not a valid filename, so -p '|' will always be false: "Is '|' a pipe? No.". So the ASCII representation of a pipe, '|', is never a pipe itself, which is exactly what Magritte meant with his painting.

Replies are listed 'Best First'.
Re^4: This is not an illegal filename
by ChemBoy (Priest) on Mar 14, 2005 at 00:14 UTC

    I've seen this assertion several times now, though the last time was a while ago. It hasn't gotten any more correct in the interim.

    $ touch \| $ file !$ file \| |: empty $ ls -l \| -rw-r--r-- 1 chemboy users 0 Mar 14 00:09 |

    That, for the record, was on Gentoo Linux on a G4, but similar results can be readily obtained on other platforms.



    If God had meant us to fly, he would *never* have given us the railroads.
        --Michael Flanders

      Thanks. I should have checked that.

      I probably meant: '|' is unlikely to be a pipe.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://438912]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.