Re: External process fails with switch arguments

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Mon, 25 Jun 2007 17:48:17 -0700, Ben Voigt [C++ MVP] <rbv@xxxxxxxxxxxxx> wrote:

Well, on every other shell I've ever used, if there is an alias for "date" and I type "date.sh" or "date.pl" or whatever, it doesn't match the alias.

For better or worse, you aren't using "every other shell". Every shell has its own idiosyncrasies, and when one uses a particular shell, one needs to be familiar with those idiosyncrasies. This particular shell is deeply entrenched in the world of Windows, and I believe you are likely stuck with its behavior, whether you like it or not.

[...]
Is this behavior for built-ins documented somewhere?

Probably, inasmuch as the NT/DOS command prompt behavior is documented at all. It's not like a Unix shell that comes with a complete man document describing every detail of its behavior. In large part, the behavior of the command prompt UI is "documented" by the current behavior. Whatever it does, that's what it's supposed to do.

But sure, it's entirely possible there's a document somewhere that describes this as the intended behavior of the NT/DOS command prompt interpreter.

Pete
.



Relevant Pages

  • Re: OT What does RET (Enter) do and how does it do it ??
    ... you're at a command prompt or other program requesting input (remember ... standardized meaning according to what has been bound to the keymap the ... program (on *nix, the shell; ... Windows calls it now) asking for input. ...
    (Fedora)
  • Re: Find components of "setup"?
    ... There are similar concepts in Linux. ... 'help' at the command prompt, and you'll get a list of built-ins. ... (shell), sometimes not. ... This applies to, say, Perl scripts as well. ...
    (comp.os.linux.misc)
  • Re: Find components of "setup"?
    ... There are similar concepts in Linux. ... 'help' at the command prompt, and you'll get a list of built-ins. ... (shell), sometimes not. ... This applies to, say, Perl scripts as well. ...
    (alt.os.linux)
  • Re: Back to last driectory
    ... thing to do would be to modify the shell itself to add a directory stack ... as well as a command stack and modify the "cd" command to accept ... I alias cd to chdir which is a function ... The trailing space tells the shell to check the next word for an alias so ...
    (comp.unix.shell)
  • Re: newbie questions
    ... > from a remote host the alias is made but when i log in x it is not. ... As shell i use bash. ... It sounds as if the window manager is invoking the ... "xterm -ls" and see if your alias settings are being read. ...
    (freebsd-questions)