Welcome, Guest. Please login or register.

Author Topic: WB/KS1.3 ALIAS is trolling me.  (Read 1637 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline BrianTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2003
  • Posts: 1604
    • Show only replies by Brian
    • http://www.syntaxsociety.se
WB/KS1.3 ALIAS is trolling me.
« on: September 25, 2013, 01:47:56 PM »
I can't seem to locate ALIAS as a command i C: or on the harddrive at all for that matter so thought it was then located in the KS1.3. However using it in my floppys startup-seq gave me error ALIAS unknown command. So where is it located?

What was even more mystifying was when I started a shell in WB1.3 and typed ALIAS A ALIAS and enter, no error so I typed A and got the error message "ALIAS unknown command"... what is this trickery!?

Offline gertsy

  • Lifetime Member
  • Hero Member
  • *****
  • Join Date: May 2006
  • Posts: 2318
  • Country: au
  • Thanked: 1 times
    • Show only replies by gertsy
    • http://www.members.optusnet.com.au/~gbakker64/
Re: WB/KS1.3 ALIAS is trolling me.
« Reply #1 on: September 25, 2013, 01:57:35 PM »
Weird. Trickery indeed. Check your path to make sure it includes c: Alias should be in c:

Cant think of anything else.  It hasn't been spelt incorrectly?
 

Offline BrianTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2003
  • Posts: 1604
    • Show only replies by Brian
    • http://www.syntaxsociety.se
Re: WB/KS1.3 ALIAS is trolling me.
« Reply #2 on: September 25, 2013, 02:07:38 PM »
Alias is not in C: or on the harddriver when i search for it.

Offline Thomas

Re: WB/KS1.3 ALIAS is trolling me.
« Reply #3 on: September 25, 2013, 02:24:07 PM »
ALIAS is a Shell command, not a CLI command. It is not available in the initial CLI. You first have to load shell-seg as resident module and can then create a new shell using the NewShell command. Only in the new shell the ALIAS command is available.

The Shell is an improved CLI which was newly introduced in WB 1.3. It is not in Kickstart and not in 1.2. In 2.0 Shell and CLI were merged into one.

Together with the Shell a new console handler called NEWCON was introduced, too. It allows basic input editing and has a command history. It is only available if you mount it. In 2.0 NEWCON features were merged into CON and NEWCON was removed.


Furthermore you cannot define an alias for ALIAS. ALIAS is an internal command of the Shell which is handled seperately to manage entries in the alias list. An entry in the alias list however has to be a real DOS command.

Offline BrianTopic starter

  • Hero Member
  • *****
  • Join Date: Mar 2003
  • Posts: 1604
    • Show only replies by Brian
    • http://www.syntaxsociety.se
Re: WB/KS1.3 ALIAS is trolling me.
« Reply #4 on: September 25, 2013, 02:28:47 PM »
Thanks for clearing that up for me Thomas. :D

Offline zipper

Re: WB/KS1.3 ALIAS is trolling me.
« Reply #5 on: September 25, 2013, 02:32:13 PM »
Alias is an internal command (oops, late...).
I put lots of aliases in shell-startup in my 3.9 so a long command/path could be lauched with a 2-letter command for instance.
« Last Edit: September 25, 2013, 02:51:47 PM by zipper »