Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Empty $''



On Mar 4, 12:14pm, Peter Stephenson wrote:
} Subject: Re: Empty $''
}
} -    else
} +    else if (*strsub)
}  	strret = strsub;
} +    else {
} +	/* This ensures a $'' doesn't get elided. */
} +	strret = dupstring(nulstring);
} +    }

This looks fine; I wasn't sure whether (*strsub) was ever nonzero in
this case but it should be harmless to append a Nulstring to another
string (happens with e.g. foo"" already I think) so I took a shortcut.



Messages sorted by: Reverse Date, Date, Thread, Author