[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
On Tue, 3 Sep 2013, Philip Hudson wrote:
On 3 Sep, 2013, at 12:19 pm, Gordon Henderson wrote:Curiously enough it doesn't work for me. gordon @ yakko: alias up 'cd `pwd | sed \'s|\(.*/\!:1/\).*|\1|\'`' Unmatched `.Interesting. Let's see, possible root causes.Are you invoking your shell as 'csh' (or '-csh') instead of as 'tcsh'? I think this might make a difference to syntax parsing, even if it's the same binary running.Is the 'complete' stanza accepted?Does doubling up the escaping of the nested single-quotes (around the sed recipe) work? Changing the sed recipe's internal delimiters from pipe to something else? Double-escaping the !:1? Do you still have any will to live?
Can't be bothered checking TBH... It might be a nice command, but somehow over the past 32 years of using unix, I've never felt it something I've just had to have...
Cheers, Gordon -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/listfaq