Skip to contentSkip to conversation

RFC: Alternative command name for 'tftpput'

U-Boot Stefan Roese 4 participants 5 messages May 22, 2017 – May 31, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

I'm stumbling again over a problem introduced with the "tftpput" command and its naming, as it breaks some of the old scripts that I and others still use. As you know, when this command is enabled (which I find quite useful from time to time), "tftp" can't be used any more as an shorthand for "tftpboot".

What do others feel about this naming? Would it be acceptable, if I post a patch to rename this "tftpput" command into something else (e.g. netput, ethput, ...)? Or perhaps its possible to add an alias for the "tftpboot" command as "tftp", allowing the usage of all 3 commands:

tftpboot: TFTP get
tftp: TFTP get
tftpput: TFTP put

Thanks,
Stefan

#1 lore raw

Hi Stefan,

Quoted 14 lines · Stefan Roese

Hi,

I'm stumbling again over a problem introduced with the "tftpput" command and its naming, as it breaks some of the old scripts that I and others still use. As you know, when this command is enabled (which I find quite useful from time to time), "tftp" can't be used any more as an shorthand for "tftpboot".

What do others feel about this naming? Would it be acceptable, if I post a patch to rename this "tftpput" command into something else (e.g. netput, ethput, ...)? Or perhaps its possible to add an alias for the "tftpboot" command as "tftp", allowing the usage of all 3 commands:

Quoted 6 lines
tftpboot:       TFTP get
tftp:           TFTP get
tftpput:        TFTP put

Thanks,
Stefan

Is it possible to make tftpput come last in the order? Or put in a hack to check it in preference to tftpput? I'm not sure why tftp would be selected before tftpb?

Regards,
Simon

#2 lore raw
In reply to Stefan Roese
Quoted 6 lines · Stefan Roese

I'm stumbling again over a problem introduced with the "tftpput" command and its naming, as it breaks some of the old scripts that I and others still use. As you know, when this command is enabled (which I find quite useful from time to time), "tftp" can't be used any more as an shorthand for "tftpboot".

Quoted 6 lines

What do others feel about this naming? Would it be acceptable, if I post a patch to rename this "tftpput" command into something else (e.g. netput, ethput, ...)? Or perhaps its possible to add an alias for the "tftpboot" command as "tftp", allowing the usage of all 3 commands:

Thou shalt not use abbreviated commands in scripts!
The same thing happens with 'set' as an abbreviation for 'setenv' when the 'setexpr' command is enabled.

Lothar Waßmann

Signature · 9 lines
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________
#3 lore raw
In reply to Stefan Roese
Quoted 14 lines · Stefan Roese

Hi,

I'm stumbling again over a problem introduced with the "tftpput" command and its naming, as it breaks some of the old scripts that I and others still use. As you know, when this command is enabled (which I find quite useful from time to time), "tftp" can't be used any more as an shorthand for "tftpboot".

What do others feel about this naming? Would it be acceptable, if I post a patch to rename this "tftpput" command into something else (e.g. netput, ethput, ...)? Or perhaps its possible to add an alias for the "tftpboot" command as "tftp", allowing the usage of all 3 commands:

Quoted 3 lines
tftpboot:       TFTP get
tftp:           TFTP get
tftpput:        TFTP put

I'd be fine with a tftp command. Ideally we would then get rid of or phase out tftpput and instead have a "tftp put" sub-command.

No idea if there are now scripts that use tftpput that we want to avoid breaking, or is it new enough / development-focused enough that it's unlikely.

-Joe

#4 lore raw

Hi Joe,

Quoted 19 lines · Joe Hershberger
Quoted 14 lines · Stefan Roese

Hi,

I'm stumbling again over a problem introduced with the "tftpput" command and its naming, as it breaks some of the old scripts that I and others still use. As you know, when this command is enabled (which I find quite useful from time to time), "tftp" can't be used any more as an shorthand for "tftpboot".

What do others feel about this naming? Would it be acceptable, if I post a patch to rename this "tftpput" command into something else (e.g. netput, ethput, ...)? Or perhaps its possible to add an alias for the "tftpboot" command as "tftp", allowing the usage of all 3 commands:

Quoted 3 lines
tftpboot:       TFTP get
tftp:           TFTP get
tftpput:        TFTP put
Quoted 6 lines

I'd be fine with a tftp command. Ideally we would then get rid of or phase out tftpput and instead have a "tftp put" sub-command.

No idea if there are now scripts that use tftpput that we want to avoid breaking, or is it new enough / development-focused enough that it's unlikely.

I think it is unlikely.

Regards,
Simon