public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [shell] shift generates errors with no command-line options
@ 2016-12-02 14:47 Tim Lewis
  0 siblings, 0 replies; only message in thread
From: Tim Lewis @ 2016-12-02 14:47 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

In a script that looks like this:

:start
if not %1 == "" then
  echo %1
  shift
  goto start
endif

'shift' will generate an error message. The spec doesn't describe any behavior like this and it is annoying to write scripts that must avoid it.

Of course you can work around it...

Tim


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-12-02 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-02 14:47 [shell] shift generates errors with no command-line options Tim Lewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox