Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'emulate sh -c' and $0
On May 30, 10:13pm, Bart Schaefer wrote:
} Subject: Re: 'emulate sh -c' and $0
}
}     emulate sh
} 
} changes only the options, but 
} 
}     emulate sh -c 'some command'
} 
} changes both options and $0 in the scope of 'some command'.
} 
[...]
} 
} It seems to me that the ideal situation would be that
} 
}     emulate sh
} 
} works exactly as it does now ("With SINGLE ARGUMENT set up zsh options"
} says the doc, emphasis mine) but that
} 
}     emulate sh -c 'some command'
} 
} alters the behavior of $0 as well.
Wow, I thought I'd deleted that top part before I wrote the later part.
That's what I get for rushing off to a concert in the middle of composing
an email message, I guess.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author