Re: [opensuse] bash pipe



On Tue, 30 Sep 2008, Randall R Schulz wrote:-

<snip>

However, the second one doesn't work well if you're in "/" or a
directory whose immediate parent is "/", in which case you get an empty
string. The first gives you an empty string if you're in "/", which may
or may not be acceptable for you. It is different than what basename and
dirname yield, certainly.

True. To match the behavior of both dirname and basename, you'd need to
check for an empty string and return '/' instead.


Regards,
David Bolt

--
Team Acorn: http://www.distributed.net/ OGR-P2 @ ~100Mnodes RC5-72 @ ~15Mkeys
SUSE 10.1 32 | | openSUSE 10.3 32b | openSUSE 11.0 32b
| openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b
RISC OS 3.6 | TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.11
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: Exporting excel to text file
    ... filenumber is just a new local variable which is going to hold the system ... >> Thank you so much for your help, the While statement and empty is ... The selection may very large as compared to what is ... >> 'Walk down each row and include it in the string if the cell is not ...
    (microsoft.public.excel.misc)
  • Re: A Logical Model for Lists as Relations
    ... I am aware of the difference between the number zero and an empty list. ... contents of a set - yields a bunch, which also has a comma union ... is a string of length 4. ... Empty strings and empty lists? ...
    (comp.databases.theory)
  • Re: Exporting excel to text file
    ... >> Thank you so much for your help, the While statement and empty is ... The selection may very large as compared to what is ... >> Open Filename For Output As #filenumber ... >> 'Walk down each row and include it in the string if the cell is not ...
    (microsoft.public.excel.misc)
  • RE: Update panel with Gridview control
    ... Regarding on your new questions(deal with empty input parameter of the ... separate panel) on the page. ... Format of the initialization string does not conform ... connectionString, Int32 currentPosition, StringBuilder buffer, Boolean ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: So whats null then if its not nothing?
    ... explain how an empty string differs from a NULL string? ... The number ZERO is the identity over the operation of addition. ... A similar evolution happened to the ASCII NUL ). ...
    (comp.databases.theory)